# HG changeset patch # User Richard Laager # Date 1182020992 0 # Node ID ee0899360e8b7350bd341c94367754c6d23842f0 # Parent 871d9aa8e51c8b0938df0ca1a16e51df15bede1a 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. diff -r 871d9aa8e51c -r ee0899360e8b pidgin/gtkmain.c --- 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