diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-07-08 12:04:35 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-08 17:21:24 +0200 |
commit | 10d6eaa73164b58c91ae8a4537b8a8589038a01d (patch) | |
tree | 5b739b0c2202b42a9079ee3ecbd98c3d3b09b124 /source/tools/muconvert.c | |
parent | b53e7a42f7cc9756ed9fa1fed313271e3ae67855 (diff) | |
download | mupdf-10d6eaa73164b58c91ae8a4537b8a8589038a01d.tar.xz |
Separate close and drop functionality for devices and writers.
Closing a device or writer may throw exceptions, but much of the
foreign language bindings (JNI and JS) depend on drop to never throw
an exception (exceptions in finalizers are bad).
Diffstat (limited to 'source/tools/muconvert.c')
-rw-r--r-- | source/tools/muconvert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/tools/muconvert.c b/source/tools/muconvert.c index 95f01c4a..4fb3b071 100644 --- a/source/tools/muconvert.c +++ b/source/tools/muconvert.c @@ -162,6 +162,8 @@ int muconvert_main(int argc, char **argv) fz_drop_document(ctx, doc); } + fz_close_document_writer(ctx, out); + fz_drop_document_writer(ctx, out); fz_drop_context(ctx); return EXIT_SUCCESS; |