From 91ac75c660d7d7100e4c55d63cbbd27729da351b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 11 Oct 2016 21:00:24 +0800 Subject: Always call fz_drop_document() to drop the document. --- source/pdf/pdf-xref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf') diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index a1e2f88d..a054a837 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -2373,7 +2373,7 @@ pdf_open_document_with_stream(fz_context *ctx, fz_stream *file) } fz_catch(ctx) { - pdf_drop_document_imp(ctx, doc); + fz_drop_document(ctx, &doc->super); fz_rethrow(ctx); } return doc; @@ -2400,7 +2400,7 @@ pdf_open_document(fz_context *ctx, const char *filename) } fz_catch(ctx) { - pdf_drop_document_imp(ctx, doc); + fz_drop_document(ctx, &doc->super); fz_rethrow(ctx); } return doc; -- cgit v1.2.3