css: Fix refcounting thinko in -gtk-recolor

gtk_css_style_get_value does not return a reference.
So don't unref the return value without taking one.
This commit is contained in:
Matthias Clasen 2016-01-21 08:42:55 -05:00
parent b4bfba00c4
commit 77a6d976b2

View File

@ -149,7 +149,7 @@ gtk_css_image_recolor_compute (GtkCssImage *image,
if (recolor->palette)
palette = _gtk_css_value_compute (recolor->palette, property_id, provider, style, parent_style);
else
palette = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_PALETTE);
palette = _gtk_css_value_ref (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_PALETTE));
img = gtk_css_image_recolor_load (recolor, style, palette);