summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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;