Fix a memory leak
svn path=/trunk/; revision=18805
This commit is contained in:
@ -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>
|
2007-09-08 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* io-ani.c: Fix some possible crashes. (#468832, Michal Luczaj)
|
* io-ani.c: Fix some possible crashes. (#468832, Michal Luczaj)
|
||||||
|
|||||||
@ -145,7 +145,8 @@ get_scaled_pixbuf (GdkPixbufScaledAnim *scaled,
|
|||||||
|
|
||||||
/* Copy the original pixbuf options to the scaled pixbuf */
|
/* Copy the original pixbuf options to the scaled pixbuf */
|
||||||
if (options && scaled->current)
|
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;
|
return scaled->current;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user