summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2002-09-12 20:05:28 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2002-09-12 20:05:28 +0000
commit8409b23d64048d4cd7cdcdab35bb32a08289f1f5 (patch)
treeae57b98a95f4301c89b3724199bfc53b6c4f66d1 /gdk-pixbuf
parent3e58667f6b4e0ef05fc02aae11fb2ee86aea101e (diff)
downloadgtk+-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/ChangeLog5
-rw-r--r--gdk-pixbuf/io-jpeg.c1
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,