mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-24 18:25:50 +00:00
Plug 3 small leaks
svn path=/trunk/; revision=14589
This commit is contained in:
parent
8b993591df
commit
18cc175e3e
|
@ -1,3 +1,10 @@
|
|||
2008-09-05 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 550009 – small leaks
|
||||
|
||||
* libnautilus-private/nautilus-directory-background.c: Plug
|
||||
three small memory leaks.
|
||||
|
||||
2008-09-04 Cosimo Cecchi <cosimoc@gnome.org>
|
||||
|
||||
* configure.in: Bump GTK+ required version to 2.13.0.
|
||||
|
|
|
@ -115,6 +115,7 @@ read_color (GConfClient *client, const char *key, GdkColor *color)
|
|||
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 @@ nautilus_file_background_read_desktop_settings (char **color,
|
|||
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 @@ nautilus_file_background_read_desktop_settings (char **color,
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue