Commit 8409b23d authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

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.
parent 3e58667f
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,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment