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:

committed by
Federico Mena Quintero

parent
3e58667f6b
commit
8409b23d64
@ -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,
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user