changeset 15634:b4ac51aebf65

Fix problem with the previous leak fix pointed out by Etan.
author Evan Schoenberg <evan.s@dreskin.net>
date Wed, 14 Feb 2007 04:26:10 +0000
parents deea490f2d91
children baec42670246 4b08df67bb78
files libpurple/protocols/jabber/roster.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c	Wed Feb 14 04:24:48 2007 +0000
+++ b/libpurple/protocols/jabber/roster.c	Wed Feb 14 04:26:10 2007 +0000
@@ -176,11 +176,12 @@
 			char *jid_norm;
 			const char *username;
 
-			jid_norm = jabber_normalize(js->gc->account, jid);
+			jid_norm = g_strdup(jabber_normalize(js->gc->account, jid));
 			username = gaim_account_get_username(js->gc->account);
 			me = g_utf8_collate(jid_norm,
 			                    jabber_normalize(js->gc->account,
 			                                     username));
+			g_free(jid_norm);
 
 			if(me == 0)
 				jb->subscription = JABBER_SUB_BOTH;