diff options
author | Federico Mena Quintero <federico@ximian.com> | 2002-09-12 20:05:28 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2002-09-12 20:05:28 +0000 |
commit | 8409b23d64048d4cd7cdcdab35bb32a08289f1f5 (patch) | |
tree | ae57b98a95f4301c89b3724199bfc53b6c4f66d1 /gdk-pixbuf | |
parent | 3e58667f6b4e0ef05fc02aae11fb2ee86aea101e (diff) | |
download | gtk+-8409b23d64048d4cd7cdcdab35bb32a08289f1f5.tar.gz |
Unref the pixbuf if we hit an unsupported colorspace.
2002-09-12 Federico Mena Quintero <federico@ximian.com>
* io-jpeg.c (gdk_pixbuf__jpeg_image_load): Unref the pixbuf if we
hit an unsupported colorspace.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index dcab318b25..6d5b2f9d3d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2002-09-12 Federico Mena Quintero <federico@ximian.com> + + * io-jpeg.c (gdk_pixbuf__jpeg_image_load): Unref the pixbuf if we + hit an unsupported colorspace. + 2002-09-06 Matthias Clasen <maclas@gmx.de> * io-ani.c, io-ani-animation.h, io-ani-animation.c, diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index 9641099422..baa929cada 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -375,6 +375,7 @@ gdk_pixbuf__jpeg_image_load (FILE *f, GError **error) convert_cmyk_to_rgb (&cinfo, lines); break; default: + g_object_unref (pixbuf); if (error && *error == NULL) { g_set_error (error, GDK_PIXBUF_ERROR, |