diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2007-09-13 05:21:42 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-09-13 05:21:42 +0000 |
commit | 58899b1097a09d580788726f7b88703aa4d5892c (patch) | |
tree | 1a2af794e6cd0c07ff90be91b1c2c44a39cf559a /gdk-pixbuf | |
parent | f0ac7485dad686a9f7df8e2fc52e8ff1e561ff6f (diff) | |
download | gtk+-58899b1097a09d580788726f7b88703aa4d5892c.tar.gz |
Fix a memory leak
svn path=/trunk/; revision=18805
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-scaled-anim.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6cf3957d43..a93c95f512 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -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) diff --git a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c index 26f105bd38..b9b593dd2c 100644 --- a/gdk-pixbuf/gdk-pixbuf-scaled-anim.c +++ b/gdk-pixbuf/gdk-pixbuf-scaled-anim.c @@ -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; } |