changeset 15029:b4346a8b446f

[gaim-migrate @ 17812] fix this leak too committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 22 Nov 2006 18:47:42 +0000
parents 9e720be7d8b9
children b598a78c4550
files gtk/gtkblist.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkblist.c	Wed Nov 22 18:40:11 2006 +0000
+++ b/gtk/gtkblist.c	Wed Nov 22 18:47:42 2006 +0000
@@ -3945,6 +3945,7 @@
 	GtkWidget *sw;
 	GtkWidget *sep;
 	GtkWidget *label;
+	GList *accounts;
 	char *pretty;
 	GtkAccelGroup *accel_group;
 	GtkTreeSelection *selection;
@@ -4029,8 +4030,10 @@
 	gtkblist->vbox = gtk_vbox_new(FALSE, 0);
 	gtk_notebook_append_page(GTK_NOTEBOOK(gtkblist->notebook), gtkblist->vbox, NULL);
 	gtk_widget_show_all(gtkblist->notebook);
-	if (gaim_accounts_get_all_active())
+	if (accounts = gaim_accounts_get_all_active()) {
+		g_list_free(accounts);
 		gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 1);
+	}
 
 	/****************************** GtkTreeView **********************************/
 	sw = gtk_scrolled_window_new(NULL,NULL);