Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/adhoccommands.c @ 20058:5103485b4b26
Plug some memory leaks.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 15 Sep 2007 18:27:01 +0000 |
parents | ab38146f8f78 |
children | bde477ec6a71 d1da36099088 |
comparison
equal
deleted
inserted
replaced
20057:27754fc4d72e | 20058:5103485b4b26 |
---|---|
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 } |