Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/adhoccommands.c @ 20276:c1d3d25e8c49
Merged xmpp leak fixes
applied changes from 73d2587302ffbbe62f6b7f3e745508c0687813ba
through db4583bc475b46b7cb9baa38229f12473d331870
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 29 Sep 2007 04:24:59 +0000 |
parents | ab38146f8f78 |
children | bde477ec6a71 d1da36099088 |
comparison
equal
deleted
inserted
replaced
20275:9ad7979b4838 | 20276:c1d3d25e8c49 |
---|---|
149 | 149 |
150 if(!strcmp(status,"completed")) { | 150 if(!strcmp(status,"completed")) { |
151 /* display result */ | 151 /* display result */ |
152 xmlnode *note = xmlnode_get_child(command,"note"); | 152 xmlnode *note = xmlnode_get_child(command,"note"); |
153 | 153 |
154 if(note) | 154 if(note) { |
155 purple_notify_info(NULL, xmlnode_get_attrib(packet, "from"), xmlnode_get_data(note), NULL); | 155 char *data = xmlnode_get_data(note); |
156 purple_notify_info(NULL, xmlnode_get_attrib(packet, "from"), data, NULL); | |
157 g_free(data); | |
158 } | |
156 | 159 |
157 if(xdata) | 160 if(xdata) |
158 jabber_x_data_request(js, xdata, (jabber_x_data_cb)do_adhoc_ignoreme, NULL); | 161 jabber_x_data_request(js, xdata, (jabber_x_data_cb)do_adhoc_ignoreme, NULL); |
159 return; | 162 return; |
160 } | 163 } |