Fix leaked pixbuf reference (#96823, Morten Welinder)
Tue Nov 5 14:16:17 2002 Owen Taylor <otaylor@redhat.com> * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Fix leaked pixbuf reference (#96823, Morten Welinder)
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Tue Nov 5 14:16:17 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Fix
|
||||||
|
leaked pixbuf reference (#96823, Morten Welinder)
|
||||||
|
|
||||||
2002-10-23 Matthias Clasen <maclas@gmx.de>
|
2002-10-23 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* io-gif.c (lzw_read_byte): Check for stack overflow throughout.
|
* io-gif.c (lzw_read_byte): Check for stack overflow throughout.
|
||||||
|
@ -629,6 +629,7 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
|
|||||||
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, tmp->has_alpha, 8, priv->width, priv->height);
|
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, tmp->has_alpha, 8, priv->width, priv->height);
|
||||||
g_object_unref (priv->animation);
|
g_object_unref (priv->animation);
|
||||||
priv->animation = gdk_pixbuf_non_anim_new (pixbuf);
|
priv->animation = gdk_pixbuf_non_anim_new (pixbuf);
|
||||||
|
g_object_unref (pixbuf);
|
||||||
g_signal_emit (loader, pixbuf_loader_signals[AREA_PREPARED], 0);
|
g_signal_emit (loader, pixbuf_loader_signals[AREA_PREPARED], 0);
|
||||||
gdk_pixbuf_scale (tmp, pixbuf, 0, 0, priv->width, priv->height, 0, 0,
|
gdk_pixbuf_scale (tmp, pixbuf, 0, 0, priv->width, priv->height, 0, 0,
|
||||||
(double) priv->width / tmp->width,
|
(double) priv->width / tmp->width,
|
||||||
|
Reference in New Issue
Block a user