From 390400e11e888ee65d4620a03615c5aa23e4d089 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Fri, 8 Jan 2016 00:39:38 +0100 Subject: GTK3 icon-container: plug a memory leak taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-0&id=f394ce8 --- libcaja-private/caja-icon-container.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libcaja-private') 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 -- cgit v1.2.1