]> Pileus Git - ~andy/gtk/commitdiff
Fix a memory leak
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 13 Sep 2007 05:21:42 +0000 (05:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 13 Sep 2007 05:21:42 +0000 (05:21 +0000)
svn path=/trunk/; revision=18805

gdk-pixbuf/ChangeLog
gdk-pixbuf/gdk-pixbuf-scaled-anim.c

index 6cf3957d4301ecdf003f6a262ecfd20229d752c5..a93c95f5121a57f69e979fbb50a2679fee30e122 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-13  Matthias Clasen  <mclasen@redhat.com>
+
+       * gdk-pixbuf-scaled-anim.c (get_scaled_pixbuf): Don't leak 
+       options.  
+
 2007-09-08  Matthias Clasen  <mclasen@redhat.com>
 
        * io-ani.c: Fix some possible crashes.  (#468832, Michal Luczaj)
index 26f105bd380239b3e73b8e1c7b9766d1ee1abb09..b9b593dd2cf55c0826212820639e6ce7078ac02b 100644 (file)
@@ -145,7 +145,8 @@ get_scaled_pixbuf (GdkPixbufScaledAnim *scaled,
 
        /* Copy the original pixbuf options to the scaled pixbuf */
         if (options && scaled->current)
-                 g_object_set_qdata (G_OBJECT (scaled->current), quark, g_strdupv (options));
+                 g_object_set_qdata_full (G_OBJECT (scaled->current), quark, 
+                                           g_strdupv (options), (GDestroyNotify) g_strfreev);
 
        return scaled->current;
 }