summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c
index 0d5e67ef..d44671b2 100644
--- a/source/pdf/pdf-image.c
+++ b/source/pdf/pdf-image.c
@@ -260,9 +260,10 @@ pdf_load_jpx(fz_context *ctx, pdf_document *doc, pdf_obj *dict, int forcemask)
}
fz_always(ctx)
{
+ fz_drop_image(ctx, mask);
+ fz_drop_pixmap(ctx, pix);
fz_drop_colorspace(ctx, colorspace);
fz_drop_buffer(ctx, buf);
- fz_drop_pixmap(ctx, pix);
}
fz_catch(ctx)
{