diff libpurple/protocols/jabber/presence.c @ 25786:5ad14a53e266

Partial disapproval of b8fdbd255c614e7305f835b843a3414675a86a19 Don't refcount the Client Info struct. It's always owned by the capstable and will be freed via jabber_caps_uninit().
author Paul Aurich <paul@darkrain42.org>
date Fri, 19 Dec 2008 04:28:38 +0000
parents 05693f6885a4
children 1d1d1829de11
line wrap: on
line diff
--- a/libpurple/protocols/jabber/presence.c	Fri Dec 19 04:18:42 2008 +0000
+++ b/libpurple/protocols/jabber/presence.c	Fri Dec 19 04:28:38 2008 +0000
@@ -394,7 +394,6 @@
 	if (!jbr) {
 		g_free(userdata->from);
 		g_free(userdata);
-		jabber_caps_client_info_unref(info);
 		if (exts) {
 			g_list_foreach(exts, (GFunc)g_free, NULL);
 			g_list_free(exts);
@@ -402,7 +401,7 @@
 		return;
 	}
 
-	jabber_caps_client_info_unref(jbr->caps.info);
+	/* Any old jbr->caps.info is owned by the caps code */
 	if (jbr->caps.exts) {
 		g_list_foreach(jbr->caps.exts, (GFunc)g_free, NULL);
 		g_list_free(jbr->caps.exts);