summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-page.c')
-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;