Mercurial > pidgin.yaz
changeset 8550:52dca2f38956
[gaim-migrate @ 9292]
i think this plugs a small leak
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 Apr 2004 21:24:38 +0000 |
parents | 1a016d979ce0 |
children | 379320562c15 |
files | src/buddyicon.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)