summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-29 16:52:46 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-12-14 20:39:20 +0100
commit508db7953f094f58e9a99172c7803c3e67afe308 (patch)
tree927a59935cf00260cc71da7f21fde93bd3f97898 /source/pdf
parent5e6a7114f16b91198538f3ae488966d9622626ee (diff)
downloadmupdf-508db7953f094f58e9a99172c7803c3e67afe308.tar.xz
Have callers of fz_new_image_from_pixmap() drop supplied mask.
This makes handling of the mask identical to that of the pixmap argument.
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)
{