diff pidgin/gtkpounce.c @ 21056:9e45c28b4b2b

Fix some leaking GtkSizeGroups.
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 30 Oct 2007 04:28:31 +0000
parents 9ad7979b4838
children 6de09629f091
line wrap: on
line diff
--- a/pidgin/gtkpounce.c	Tue Oct 30 03:24:07 2007 +0000
+++ b/pidgin/gtkpounce.c	Tue Oct 30 04:28:31 2007 +0000
@@ -685,6 +685,8 @@
 	gtk_widget_set_sensitive(dialog->play_sound_browse, FALSE);
 	gtk_widget_set_sensitive(dialog->play_sound_test,   FALSE);
 
+	g_object_unref(sg);
+
 	sg = gtk_size_group_new(GTK_SIZE_GROUP_VERTICAL);
 	gtk_size_group_add_widget(sg, dialog->open_win);
 	gtk_size_group_add_widget(sg, dialog->popup);
@@ -697,6 +699,9 @@
 	gtk_size_group_add_widget(sg, dialog->play_sound_browse);
 	gtk_size_group_add_widget(sg, dialog->play_sound_test);
 
+	g_object_unref(sg);
+	sg = NULL;
+
 	gtk_table_attach(GTK_TABLE(table), dialog->open_win,         0, 1, 0, 1,
 					 GTK_FILL, 0, 0, 0);
 	gtk_table_attach(GTK_TABLE(table), dialog->popup,            0, 1, 1, 2,