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