Mercurial > pidgin.yaz
changeset 26898:bcc577785c2b
Free the forms properly; they're xmlnodes, not strings.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 04 May 2009 02:21:23 +0000 |
parents | 985e7f8d8744 |
children | d97a130da290 |
files | libpurple/protocols/jabber/caps.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c Mon May 04 00:04:55 2009 +0000 +++ b/libpurple/protocols/jabber/caps.c Mon May 04 02:21:23 2009 +0000 @@ -132,7 +132,11 @@ } free_string_glist(info->features); - free_string_glist(info->forms); + + while (info->forms) { + xmlnode_free(info->forms->data); + info->forms = g_list_delete_link(info->forms, info->forms); + } jabber_caps_node_exts_unref(info->exts);