summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-jpeg.c
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/io-jpeg.c
parent3e58667f6b4e0ef05fc02aae11fb2ee86aea101e (diff)
downloadgdk-pixbuf-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/io-jpeg.c')
-rw-r--r--gdk-pixbuf/io-jpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 964109942..baa929cad 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,