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/tools/mudraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/tools/mudraw.c') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 420ca1dc..734429da 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -1067,7 +1067,7 @@ int main(int argc, char **argv) if (showxml || showtext == TEXT_XML) fz_printf(out, "\n"); - fz_close_document(doc); + fz_drop_document(doc); doc = NULL; } fz_catch(ctx) @@ -1075,7 +1075,7 @@ int main(int argc, char **argv) if (!ignore_errors) fz_rethrow(ctx); - fz_close_document(doc); + fz_drop_document(doc); doc = NULL; fz_warn(ctx, "ignoring error in '%s'", filename); } @@ -1083,7 +1083,7 @@ int main(int argc, char **argv) } fz_catch(ctx) { - fz_close_document(doc); + fz_drop_document(doc); fprintf(stderr, "error: cannot draw '%s'\n", filename); errored = 1; } -- cgit v1.2.3