[gtk+] statusicon: plug memory leak



commit 5f45878133945e1ce28d39df8cacddb53512758f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 9 10:45:26 2015 -0800

    statusicon: plug memory leak

 gtk/deprecated/gtkstatusicon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/deprecated/gtkstatusicon.c b/gtk/deprecated/gtkstatusicon.c
index b46dfcc..e384974 100644
--- a/gtk/deprecated/gtkstatusicon.c
+++ b/gtk/deprecated/gtkstatusicon.c
@@ -1400,6 +1400,7 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
   surface = gtk_icon_helper_load_surface (icon_helper, 1);
   pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0, round_size, round_size);
   cairo_surface_destroy (surface);
+  g_object_unref (icon_helper);
 
   if (pixbuf != NULL)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]