mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
Fix a memory leak
svn path=/trunk/; revision=18805
This commit is contained in:
parent
f0ac7485da
commit
58899b1097
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user