Mercurial > pidgin.yaz
diff pidgin/gtkmain.c @ 18116:ee0899360e8b
Re-apply a good change from 1411afd7660760db59966c3a9f18e2adab8eb27e:
Use a separate variable for a list which is going to be g_list_free()d, so
it's more clear what is happening.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 16 Jun 2007 19:09:52 +0000 |
parents | 926ccb104da0 |
children | 59aec2d6ec43 |
line wrap: on
line diff
--- a/pidgin/gtkmain.c Sat Jun 16 19:08:51 2007 +0000 +++ b/pidgin/gtkmain.c Sat Jun 16 19:09:52 2007 +0000 @@ -456,6 +456,7 @@ gboolean gui_check; gboolean debug_enabled; gboolean migration_failed = FALSE; + GList *active_accounts; struct option long_options[] = { {"config", required_argument, NULL, 'c'}, @@ -828,13 +829,13 @@ purple_accounts_restore_current_statuses(); } - if ((accounts = purple_accounts_get_all_active()) == NULL) + if ((active_accounts = purple_accounts_get_all_active()) == NULL) { pidgin_accounts_window_show(); } else { - g_list_free(accounts); + g_list_free(active_accounts); } #ifdef HAVE_STARTUP_NOTIFICATION