summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-interpret.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index b1adc576..76804c03 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -329,9 +329,12 @@ parse_inline_image(fz_context *ctx, pdf_csi *csi, fz_stream *stm)
if (!found)
fz_throw(ctx, FZ_ERROR_GENERIC, "syntax error after inline image");
}
- fz_catch(ctx)
+ fz_always(ctx)
{
pdf_drop_obj(ctx, obj);
+ }
+ fz_catch(ctx)
+ {
fz_drop_image(ctx, img);
fz_rethrow(ctx);
}