# HG changeset patch # User Stu Tomlinson # Date 1208882696 0 # Node ID 04dc38d726fb9f4115d475896e0c0be203e04837 # Parent a73acc0c4dc8b12a842bac8ba680e27a11efbdf4 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 diff -r a73acc0c4dc8 -r 04dc38d726fb libpurple/blist.c --- 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)) {