[PATCH] Fix leak for GtkSizeGroup usage



To make sure that an object of GtkSizeGroup gets freed it needs to be unreffed after all items to be grouped have been added to it.

Jaap
? nautilus-file-management-properties.gladep
Index: nautilus-file-management-properties.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-file-management-properties.c,v
retrieving revision 1.17
diff -u -r1.17 nautilus-file-management-properties.c
--- nautilus-file-management-properties.c	2 Jun 2005 16:16:55 -0000	1.17
+++ nautilus-file-management-properties.c	15 Nov 2005 21:20:45 -0000
@@ -189,6 +189,7 @@
 					   glade_xml_get_widget (xml_dialog, item_name));
 		g_free (item_name);
 	}
+	g_object_unref (G_OBJECT (size_group));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]