Mercurial > pidgin.yaz
diff src/savedstatuses.c @ 11733:ef511dec9903
[gaim-migrate @ 14024]
The include in gtkaccount isn't used anymore, now that we're using
tabs (yay)
And marv's doco change made me realize I wasn't freeing a glist (yay)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Oct 2005 02:25:25 +0000 |
parents | 8657ad65e257 |
children | a25be0e70a67 |
line wrap: on
line diff
--- a/src/savedstatuses.c Sun Oct 23 01:42:01 2005 +0000 +++ b/src/savedstatuses.c Sun Oct 23 02:25:25 2005 +0000 @@ -501,20 +501,21 @@ void gaim_savedstatus_activate(const GaimSavedStatus *saved_status) { - GList *accounts; + GList *accounts, *node; g_return_if_fail(saved_status != NULL); accounts = gaim_accounts_get_all_active(); - while (accounts != NULL) + for (node = accounts; node != NULL; node = node->next) { GaimAccount *account; - account = accounts->data; + account = node->data; gaim_savedstatus_activate_for_account(saved_status, account); - accounts = accounts->next; } + + g_list_free(accounts); } void