changeset 22821:61e0bcbf31ab

Fix a small memleak when adding a Jabber buddy
author Mark Doliner <mark@kingant.net>
date Mon, 05 May 2008 04:54:37 +0000
parents 78ee2ec009e8
children f09acca60066 ab2322195dab
files libpurple/protocols/jabber/roster.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/roster.c	Mon May 05 02:00:28 2008 +0000
+++ b/libpurple/protocols/jabber/roster.c	Mon May 05 04:54:37 2008 +0000
@@ -342,6 +342,7 @@
 	}
 
 	jabber_roster_update(js, who, groups);
+	g_slist_free(groups);
 
 	my_bare_jid = g_strdup_printf("%s@%s", js->user->node, js->user->domain);
 	if(!strcmp(who, my_bare_jid)) {