summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-01-20 16:02:34 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-02-17 16:31:42 +0100
commit76a09166ddbe5b741f54f0fd203f2135e5b532c3 (patch)
treee331ba98b1a69ae56ac461341a85624ff61f2d59 /docs
parentb9d11456411907e9add8d91b02d67842990c2952 (diff)
downloadmupdf-76a09166ddbe5b741f54f0fd203f2135e5b532c3.tar.xz
Reference count fz_document.
Diffstat (limited to 'docs')
-rw-r--r--docs/example.c2
-rw-r--r--docs/multi-threaded.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/example.c b/docs/example.c
index 19372d81..bf04c805 100644
--- a/docs/example.c
+++ b/docs/example.c
@@ -93,7 +93,7 @@ render(char *filename, int pagenumber, int zoom, int rotation)
fz_drop_pixmap(ctx, pix);
fz_free_page(doc, page);
- fz_close_document(doc);
+ fz_drop_document(doc);
fz_free_context(ctx);
}
diff --git a/docs/multi-threaded.c b/docs/multi-threaded.c
index 2742fdf8..c5df1f4e 100644
--- a/docs/multi-threaded.c
+++ b/docs/multi-threaded.c
@@ -272,7 +272,7 @@ int main(int argc, char **argv)
// Finally the document is closed and the main thread's
// context is freed.
- fz_close_document(doc);
+ fz_drop_document(doc);
fz_free_context(ctx);
return 0;