From 224c638fb313efb90aa0eb489d184e704718c482 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 2 Oct 2018 13:29:16 +0800 Subject: Drop indirect reference upon exception. --- source/tools/pdfshow.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') diff --git a/source/tools/pdfshow.c b/source/tools/pdfshow.c index 76868e69..b9687150 100644 --- a/source/tools/pdfshow.c +++ b/source/tools/pdfshow.c @@ -185,6 +185,7 @@ static void showgrep(void) } fz_catch(ctx) { + pdf_drop_obj(ctx, ref); fz_warn(ctx, "skipping object (%d 0 R)", i); continue; } -- cgit v1.2.3