[gtk+] iconhelper: Fix leak when rendering to cairo surface
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconhelper: Fix leak when rendering to cairo surface
- Date: Wed, 2 Oct 2013 15:22:23 +0000 (UTC)
commit 744b790fdb655f87450f20c5745bbaf1693bf7d7
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 2 15:33:20 2013 +0200
iconhelper: Fix leak when rendering to cairo surface
https://bugzilla.gnome.org/show_bug.cgi?id=709264
gtk/gtkiconhelper.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 397ba2f..cda1e99 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -667,6 +667,7 @@ ensure_stated_surface_from_info (GtkIconHelper *self,
(gdk_pixbuf_get_width (destination) + scale - 1) / scale;
self->priv->rendered_surface_height =
(gdk_pixbuf_get_height (destination) + scale - 1) / scale;
+ g_object_unref (destination);
}
self->priv->rendered_surface = surface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]