diff options
author | Krzesimir Nowak <qdlacz@gmail.com> | 2018-03-27 13:14:41 +0200 |
---|---|---|
committer | Krzesimir Nowak <qdlacz@gmail.com> | 2018-03-27 13:14:41 +0200 |
commit | 06661da8b014e35ea3b20f73c144773ac95b700b (patch) | |
tree | dc831bf24653f6cca939be23d62c6b4b32582da2 /gtk/gtkiconhelper.c | |
parent | b26e584e295ef835a6af74afc8d8d13330782dfb (diff) | |
download | gtk+-06661da8b014e35ea3b20f73c144773ac95b700b.tar.gz |
Fix some leaks
Diffstat (limited to 'gtk/gtkiconhelper.c')
-rw-r--r-- | gtk/gtkiconhelper.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index e182836833..ca7e308870 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -136,7 +136,12 @@ ensure_paintable_for_gicon (GtkIconHelper *self, *symbolic = gtk_icon_info_is_symbolic (info); paintable = GDK_PAINTABLE (gtk_icon_info_load_texture (info)); if (paintable && scale != 1) - paintable = gtk_scaler_new (paintable, scale); + { + GdkPaintable *orig = paintable; + + paintable = gtk_scaler_new (orig, scale); + g_object_unref (orig); + } return paintable; } |