diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-01-20 16:02:34 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-02-17 16:31:42 +0100 |
commit | 76a09166ddbe5b741f54f0fd203f2135e5b532c3 (patch) | |
tree | e331ba98b1a69ae56ac461341a85624ff61f2d59 /source/img | |
parent | b9d11456411907e9add8d91b02d67842990c2952 (diff) | |
download | mupdf-76a09166ddbe5b741f54f0fd203f2135e5b532c3.tar.xz |
Reference count fz_document.
Diffstat (limited to 'source/img')
-rw-r--r-- | source/img/muimage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/img/muimage.c b/source/img/muimage.c index 7e0f56ab..21fd6261 100644 --- a/source/img/muimage.c +++ b/source/img/muimage.c @@ -150,6 +150,7 @@ image_rebind(image_document *doc, fz_context *ctx) static void image_init_document(image_document *doc) { + doc->super.refs = 1; doc->super.close = (fz_document_close_fn *)image_close_document; doc->super.count_pages = (fz_document_count_pages_fn *)image_count_pages; doc->super.load_page = (fz_document_load_page_fn *)image_load_page; |