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.
This commit is contained in:
Federico Mena Quintero
2002-09-12 20:05:28 +00:00
committed by Federico Mena Quintero
parent 3e58667f6b
commit 8409b23d64
2 changed files with 6 additions and 0 deletions

View File

@ -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,

View File

@ -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,