summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-06-07 07:30:57 +0800
committerRobin Watts <robin.watts@artifex.com>2017-06-08 16:54:08 +0100
commitfb11d33b1c6592ba72651310e57ac82d62e30ffe (patch)
tree9b42e80fb0f394f1f5b65fc8893103040d5a79b4 /source
parent1e6eb8dfff41be5567a5ea2e1730a7e00b5726f1 (diff)
downloadmupdf-fb11d33b1c6592ba72651310e57ac82d62e30ffe.tar.xz
Plug leak of PDF page object.
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-page.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index f18204fa..8f24ef91 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -711,7 +711,10 @@ pdf_load_page(fz_context *ctx, pdf_document *doc, int number)
fz_catch(ctx)
{
if (fz_caught(ctx) != FZ_ERROR_TRYLATER)
+ {
+ fz_drop_page(ctx, &page->super);
fz_rethrow(ctx);
+ }
page->incomplete |= PDF_PAGE_INCOMPLETE_ANNOTS;
fz_drop_link(ctx, page->links);
page->links = NULL;