Commit 225e913b authored by Paolo Bacchilega's avatar Paolo Bacchilega

fixed memory leak

parent 001de4a9
......@@ -27,7 +27,7 @@
#include <jpeglib.h>
#include <gthumb.h>
#include <extensions/jpeg_utils/jmemorysrc.h>
#include <extensions/jpeg_utils/jpeg-exif-orientation.h>
#include <extensions/jpeg_utils/jpeg-info.h>
#include "cairo-io-jpeg.h"
......@@ -185,6 +185,7 @@ _cairo_image_surface_create_from_jpeg (GthFileData *file_data,
jpeg_create_decompress (&srcinfo);
if (sigsetjmp (jsrcerr.setjmp_buffer, 1)) {
g_free (in_buffer);
jpeg_destroy_decompress (&srcinfo);
return image;
}
......
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