From: <sa...@us...> - 2006-11-22 18:15:10
|
Revision: 17809 http://svn.sourceforge.net/gaim/?rev=17809&view=rev Author: sadrul Date: 2006-11-22 10:15:01 -0800 (Wed, 22 Nov 2006) Log Message: ----------- Unleak Modified Paths: -------------- trunk/gtk/gtkblist.c Modified: trunk/gtk/gtkblist.c =================================================================== --- trunk/gtk/gtkblist.c 2006-11-22 15:50:27 UTC (rev 17808) +++ trunk/gtk/gtkblist.c 2006-11-22 18:15:01 UTC (rev 17809) @@ -3727,12 +3727,14 @@ static void account_modified(GaimAccount *account, GaimGtkBuddyList *gtkblist) { + GList *list; if (!gtkblist) return; - if (gaim_accounts_get_all_active()) + if ((list = gaim_accounts_get_all_active()) != NULL) { gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 1); - else + g_list_free(list); + } else gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 0); update_menu_bar(gtkblist); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |