From f1849a8c230909bc0a67faf2ff89d3b4f85ad242 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 26 Dec 2011 19:56:10 +0100 Subject: jabber_buddy_* stuff *is* a complete memory management hell already. :-( Hopefully this change fixes a small memory leak. --- protocols/jabber/jabber_util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols') diff --git a/protocols/jabber/jabber_util.c b/protocols/jabber/jabber_util.c index d181b904..4a71567a 100644 --- a/protocols/jabber/jabber_util.c +++ b/protocols/jabber/jabber_util.c @@ -675,6 +675,8 @@ static gboolean jabber_buddy_remove_all_cb( gpointer key, gpointer value, gpoint struct jabber_buddy *bud, *next; bud = value; + if( bud->bare_jid != bud->full_jid ) + g_free( bud->bare_jid ); while( bud ) { next = bud->next; -- cgit v1.2.3