gtk/gtkblist.c

changeset 15088
d5bb04caf6e1
parent 15086
c680354b7c95
child 15089
0522a7934420
--- a/gtk/gtkblist.c	Wed Nov 22 15:29:57 2006 +0000
+++ b/gtk/gtkblist.c	Wed Nov 22 18:15:01 2006 +0000
@@ -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);

mercurial