changeset 22677:04dc38d726fb

Leak fix. This is probably quite serious if you have busy chats on your buddy list. Hopefully fixes https://bugzilla.redhat.com/show_bug.cgi?id=284001
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 22 Apr 2008 16:44:56 +0000
parents a73acc0c4dc8
children 01b5c9ed85e7
files libpurple/blist.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/blist.c	Tue Apr 22 05:32:08 2008 +0000
+++ b/libpurple/blist.c	Tue Apr 22 16:44:56 2008 +0000
@@ -2238,6 +2238,8 @@
 				pce = parts->data;
 				chat_name = g_hash_table_lookup(chat->components,
 												pce->identifier);
+				g_list_foreach(parts, (GFunc)g_free, NULL);
+				g_list_free(parts);
 
 				if (chat->account == account && chat_name != NULL &&
 					name != NULL && !strcmp(chat_name, name)) {