summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-10-01 22:07:38 +0800
committerTor Andersson <tor.andersson@artifex.com>2018-10-23 18:46:01 +0200
commit17e5b245e8f0da3287097684f81d470cec8de991 (patch)
tree32adf909d0019af9deea63d7cf200dc9af6de54b /source
parent8318f36398aee997232caa9b16c7c998b1b0c891 (diff)
downloadmupdf-17e5b245e8f0da3287097684f81d470cec8de991.tar.xz
Drop reference upon exception in mutool extract.
Diffstat (limited to 'source')
-rw-r--r--source/tools/pdfextract.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c
index bf8b241a..e56abe2b 100644
--- a/source/tools/pdfextract.c
+++ b/source/tools/pdfextract.c
@@ -229,8 +229,9 @@ static void extractobject(int num)
if (isfontdesc(ref))
savefont(ref);
- pdf_drop_obj(ctx, ref);
}
+ fz_always(ctx)
+ pdf_drop_obj(ctx, ref);
fz_catch(ctx)
{
fz_warn(ctx, "ignoring object %d", num);