Fix a memory leak

svn path=/trunk/; revision=18805
This commit is contained in:
Matthias Clasen 2007-09-13 05:21:42 +00:00
parent f0ac7485da
commit 58899b1097
2 changed files with 7 additions and 1 deletions

View 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)

View 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;
}