diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index dcab318b2..6d5b2f9d3 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +2002-09-12 Federico Mena Quintero + + * io-jpeg.c (gdk_pixbuf__jpeg_image_load): Unref the pixbuf if we + hit an unsupported colorspace. + 2002-09-06 Matthias Clasen * 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 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,