nautilus r14589 - in trunk: . libnautilus-private



Author: matthiasc
Date: Fri Sep  5 18:02:55 2008
New Revision: 14589
URL: http://svn.gnome.org/viewvc/nautilus?rev=14589&view=rev

Log:
Plug 3 small leaks


Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-directory-background.c

Modified: trunk/libnautilus-private/nautilus-directory-background.c
==============================================================================
--- trunk/libnautilus-private/nautilus-directory-background.c	(original)
+++ trunk/libnautilus-private/nautilus-directory-background.c	Fri Sep  5 18:02:55 2008
@@ -115,6 +115,7 @@
         if (tmp != NULL) {
                 if (!gdk_color_parse (tmp, color))
                         gdk_color_parse ("black", color);
+		g_free (tmp);
         }
         else {
                 gdk_color_parse ("black", color);
@@ -198,6 +199,7 @@
         else {
                 *placement = EEL_BACKGROUND_CENTERED;
         }
+        g_free (tmp);
                 
         /* Get the color */
         tmp = gconf_client_get_string (client, BG_PREFERENCES_COLOR_SHADING_TYPE, NULL);
@@ -223,6 +225,7 @@
                 use_gradient = FALSE;
                 is_horizontal = FALSE;
         }
+        g_free (tmp);
         
         read_color (client, BG_PREFERENCES_PRIMARY_COLOR, &primary);
         read_color (client, BG_PREFERENCES_SECONDARY_COLOR, &secondary);



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