comparison libpurple/blist.c @ 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 6fc8f0c825e0
children abb17e7e2e98 d11c993700e6 e2d28391d3fc
comparison
equal deleted inserted replaced
22676:a73acc0c4dc8 22677:04dc38d726fb
2236 purple_account_get_connection(chat->account)); 2236 purple_account_get_connection(chat->account));
2237 2237
2238 pce = parts->data; 2238 pce = parts->data;
2239 chat_name = g_hash_table_lookup(chat->components, 2239 chat_name = g_hash_table_lookup(chat->components,
2240 pce->identifier); 2240 pce->identifier);
2241 g_list_foreach(parts, (GFunc)g_free, NULL);
2242 g_list_free(parts);
2241 2243
2242 if (chat->account == account && chat_name != NULL && 2244 if (chat->account == account && chat_name != NULL &&
2243 name != NULL && !strcmp(chat_name, name)) { 2245 name != NULL && !strcmp(chat_name, name)) {
2244 2246
2245 return chat; 2247 return chat;