Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/adhoccommands.c Sat Sep 29 02:49:25 2007 +0000 +++ b/libpurple/protocols/jabber/adhoccommands.c Sat Sep 29 04:24:59 2007 +0000 @@ -151,8 +151,11 @@ /* display result */ xmlnode *note = xmlnode_get_child(command,"note"); - if(note) - purple_notify_info(NULL, xmlnode_get_attrib(packet, "from"), xmlnode_get_data(note), NULL); + if(note) { + char *data = xmlnode_get_data(note); + purple_notify_info(NULL, xmlnode_get_attrib(packet, "from"), data, NULL); + g_free(data); + } if(xdata) jabber_x_data_request(js, xdata, (jabber_x_data_cb)do_adhoc_ignoreme, NULL);