GtkIconTheme Don't leak pixbuf in symbolic icon cache

We need to unref the pixbuf we just put in the cache, because
symbolic_pixbuf_cache_new takes a ref.

https://bugzilla.gnome.org/show_bug.cgi?id=693802
This commit is contained in:
Alexander Larsson 2013-02-14 14:58:02 +01:00
parent 7690846c3f
commit 23d5c41603

View File

@ -3885,7 +3885,7 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
icon_info->symbolic_pixbuf_cache = icon_info->symbolic_pixbuf_cache =
symbolic_pixbuf_cache_new (pixbuf, fg, success_color, warning_color, error_color, symbolic_pixbuf_cache_new (pixbuf, fg, success_color, warning_color, error_color,
icon_info->symbolic_pixbuf_cache); icon_info->symbolic_pixbuf_cache);
g_object_unref (pixbuf);
return symbolic_cache_get_proxy (icon_info->symbolic_pixbuf_cache, icon_info); return symbolic_cache_get_proxy (icon_info->symbolic_pixbuf_cache, icon_info);
} }