changeset 15027:b9d24ed4cfce

[gaim-migrate @ 17809] Unleak committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 22 Nov 2006 18:15:01 +0000
parents c039c920e11c
children 0570155bed53
files gtk/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);