# HG changeset patch # User Nathan Walp # Date 1080854678 0 # Node ID 52dca2f3895669dc871b0de840a92002607563d9 # Parent 1a016d979ce0850fabee1476a693f9d7f580d63f [gaim-migrate @ 9292] i think this plugs a small leak committer: Tailor Script diff -r 1a016d979ce0 -r 52dca2f38956 src/buddyicon.c --- a/src/buddyicon.c Thu Apr 01 21:24:17 2004 +0000 +++ b/src/buddyicon.c Thu Apr 01 21:24:38 2004 +0000 @@ -150,20 +150,23 @@ GaimConversation *conv; GaimAccount *account; const char *username; - GSList *sl; + GSList *sl, *list; g_return_if_fail(icon != NULL); account = gaim_buddy_icon_get_account(icon); username = gaim_buddy_icon_get_username(icon); - for (sl = gaim_find_buddies(account, username); sl != NULL; sl = sl->next) + for (list =sl = gaim_find_buddies(account, username); sl != NULL; + sl = sl->next) { GaimBuddy *buddy = (GaimBuddy *)sl->data; gaim_buddy_set_icon(buddy, icon); } + g_slist_free(list); + conv = gaim_find_conversation_with_account(username, account); if (conv != NULL && gaim_conversation_get_type(conv) == GAIM_CONV_IM)