diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-11 21:00:24 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-12 01:53:15 +0800 |
commit | 91ac75c660d7d7100e4c55d63cbbd27729da351b (patch) | |
tree | 108c66ac09b9bf47a0548333e93da12d72ff584a /source/pdf | |
parent | 28d9c75ed780414a7ae71cab88cc86536444b255 (diff) | |
download | mupdf-91ac75c660d7d7100e4c55d63cbbd27729da351b.tar.xz |
Always call fz_drop_document() to drop the document.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-xref.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |