From 76a09166ddbe5b741f54f0fd203f2135e5b532c3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 20 Jan 2015 16:02:34 +0100 Subject: Reference count fz_document. --- source/xps/xps-zip.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/xps') diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c index 8b96773f..1dbd103c 100644 --- a/source/xps/xps-zip.c +++ b/source/xps/xps-zip.c @@ -254,6 +254,7 @@ xps_rebind(xps_document *doc, fz_context *ctx) static void xps_init_document(xps_document *doc) { + doc->super.refs = 1; doc->super.close = (fz_document_close_fn *)xps_close_document; doc->super.load_outline = (fz_document_load_outline_fn *)xps_load_outline; doc->super.count_pages = (fz_document_count_pages_fn *)xps_count_pages; -- cgit v1.2.3