[gtk] iconhelper: Plug memleak



commit 93c545579666b401a63b858f631d792aee7191dc
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 4 14:40:00 2018 +0200

    iconhelper: Plug memleak

 gtk/gtkiconhelper.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 502907e5fd..1c696a0d47 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -123,6 +123,8 @@ ensure_paintable_for_gicon (GtkIconHelper    *self,
 
   *symbolic = gtk_icon_info_is_symbolic (info);
   paintable = GDK_PAINTABLE (gtk_icon_info_load_texture (info));
+  g_object_unref (info);
+
   if (paintable && scale != 1)
     {
       GdkPaintable *orig = paintable;


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