Package: gdk-pixbuf
Version: 2.31.1-2
Tags: upstream patch
See patch for details. Thanks
Description: better error handling for jas_init and cleanup memory
Author: Mathieu Malaterre <[email protected]>
--- gdk-pixbuf-2.31.1.orig/gdk-pixbuf/io-jasper.c
+++ gdk-pixbuf-2.31.1/gdk-pixbuf/io-jasper.c
@@ -52,6 +52,7 @@ free_jasper_context (struct jasper_conte
jas_stream_close (context->stream);
context->stream = NULL;
}
+ jas_image_clearfmts();
g_free (context);
}
@@ -65,7 +66,8 @@ jasper_image_begin_load (GdkPixbufModule
struct jasper_context *context;
jas_stream_t *stream;
- jas_init ();
+ if(jas_init ())
+ return NULL;
stream = jas_stream_memopen (NULL, -1);
if (!stream) {