From f9bab4a5e0caee3fcc1f8ab9d809ab23be1acf96 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 26 Sep 2016 16:10:25 +0100 Subject: Fix leak in fz_load_jpx_info. --- source/fitz/load-jpx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c index fe2d0cf7..6c7a5941 100644 --- a/source/fitz/load-jpx.c +++ b/source/fitz/load-jpx.c @@ -887,6 +887,7 @@ fz_load_jpx_info(fz_context *ctx, unsigned char *data, size_t size, int *wp, int *hp = img->h; *xresp = 72; /* openjpeg does not read the JPEG 2000 resc box */ *yresp = 72; /* openjpeg does not read the JPEG 2000 resc box */ + fz_drop_pixmap(ctx, img); } #endif /* HAVE_LURATECH */ -- cgit v1.2.3