gnome-desktop r5183 - trunk/libgnome-desktop



Author: federico
Date: Sat Aug 16 01:46:38 2008
New Revision: 5183
URL: http://svn.gnome.org/viewvc/gnome-desktop?rev=5183&view=rev

Log:
Free the palette after the windows, as the windows reference the palette

Signed-off-by: Federico Mena Quintero <federico novell com>


Modified:
   trunk/libgnome-desktop/gnome-rr-labeler.c

Modified: trunk/libgnome-desktop/gnome-rr-labeler.c
==============================================================================
--- trunk/libgnome-desktop/gnome-rr-labeler.c	(original)
+++ trunk/libgnome-desktop/gnome-rr-labeler.c	Sat Aug 16 01:46:38 2008
@@ -74,15 +74,15 @@
 	 * caller do that instead.
 	 */
 
-	g_free (labeler->palette);
-	labeler->palette = NULL;
-
 	if (labeler->windows != NULL) {
 		gnome_rr_labeler_hide (labeler);
 		g_free (labeler->windows);
 		labeler->windows = NULL;
 	}
 
+	g_free (labeler->palette);
+	labeler->palette = NULL;
+
 	G_OBJECT_CLASS (gnome_rr_labeler_parent_class)->finalize (object);
 }
 



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