summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-08 00:39:38 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-13 15:05:42 +0100
commit390400e11e888ee65d4620a03615c5aa23e4d089 (patch)
treefc7b7553d8cb72eefcf943616b73d6c5b58aa5c5
parente5708b8799ecd7b74b0c6d890677c0281b762cee (diff)
downloadcaja-390400e11e888ee65d4620a03615c5aa23e4d089.tar.bz2
caja-390400e11e888ee65d4620a03615c5aa23e4d089.tar.xz
GTK3 icon-container: plug a memory leak
taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=f394ce8
-rw-r--r--libcaja-private/caja-icon-container.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index 203f1b8e..9aa26dac 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -9768,6 +9768,11 @@ caja_icon_container_theme_changed (gpointer user_data)
container->details->normal_icon_color_rgba = *normal_icon_color;
container->details->normal_color_rgba = color;
+
+ setup_label_gcs (container);
+
+ gdk_rgba_free (prelight_icon_color);
+ gdk_rgba_free (normal_icon_color);
#else
GtkStyle *style;
GdkColor *prelight_icon_color, *normal_icon_color;
@@ -9861,9 +9866,9 @@ caja_icon_container_theme_changed (gpointer user_data)
style->base[GTK_STATE_PRELIGHT].green >> 8,
style->base[GTK_STATE_PRELIGHT].blue >> 8,
prelight_alpha);
-#endif
setup_label_gcs (container);
+#endif
}
void