[gtk+] GtkIconTheme Don't leak pixbuf in symbolic icon cache
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkIconTheme Don't leak pixbuf in symbolic icon cache
- Date: Thu, 14 Feb 2013 21:11:51 +0000 (UTC)
commit 23d5c41603b8a6277253261a210b87334d62748f
Author: Alexander Larsson <alexl redhat com>
Date: Thu Feb 14 14:58:02 2013 +0100
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
gtk/gtkicontheme.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index f2e9f6c..de5c96c 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3885,7 +3885,7 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo *icon_info,
icon_info->symbolic_pixbuf_cache =
symbolic_pixbuf_cache_new (pixbuf, fg, success_color, warning_color, error_color,
icon_info->symbolic_pixbuf_cache);
-
+ g_object_unref (pixbuf);
return symbolic_cache_get_proxy (icon_info->symbolic_pixbuf_cache, icon_info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]