Mercurial > pidgin
diff libpurple/blist.c @ 22694: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 | 6fc8f0c825e0 |
children | abb17e7e2e98 d11c993700e6 e2d28391d3fc |
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)) {