summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);