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:
Owen Taylor
2002-11-05 19:18:56 +00:00
committed by Owen Taylor
parent 66cefd1cc0
commit 8942a3a2d5
2 changed files with 6 additions and 0 deletions

View File

@ -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>
* io-gif.c (lzw_read_byte): Check for stack overflow throughout.

View File

@ -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);
g_object_unref (priv->animation);
priv->animation = gdk_pixbuf_non_anim_new (pixbuf);
g_object_unref (pixbuf);
g_signal_emit (loader, pixbuf_loader_signals[AREA_PREPARED], 0);
gdk_pixbuf_scale (tmp, pixbuf, 0, 0, priv->width, priv->height, 0, 0,
(double) priv->width / tmp->width,