Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/buddy.c @ 25782:6bdcdb77ce77
Reference-count JabberCapsClientInfo and fix bug.
jabber_caps_get_info() wouldn't ever actually trigger the callback if
the data were already in the hash. Fix that + a leak of the lookup key and
userdata.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 15 Dec 2008 20:43:02 +0000 |
parents | f47429b5ab52 |
children | 05693f6885a4 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c Sun Dec 14 21:19:02 2008 +0000 +++ b/libpurple/protocols/jabber/buddy.c Mon Dec 15 20:43:02 2008 +0000 @@ -181,7 +181,7 @@ jbr->commands = g_list_delete_link(jbr->commands, jbr->commands); } - /* jbr->caps is owned by the caps code */ + jabber_caps_client_info_unref(jbr->caps); g_free(jbr->name); g_free(jbr->status); g_free(jbr->thread_id);