summaryrefslogtreecommitdiff
path: root/source/fitz/zip.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-10-17 16:41:59 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-11-01 13:08:56 +0100
commit1dc763159b03cbd4387713f353f26c890d2c0e52 (patch)
treed43c18deeacd70e23d7e353c8f0c074c87419a34 /source/fitz/zip.c
parentf595e889b91a674eb94db7ca4d832da54f5194cd (diff)
downloadmupdf-1dc763159b03cbd4387713f353f26c890d2c0e52.tar.xz
Add separate fz_close_output step.
Closing flushes output and may throw exceptions. Dropping frees the state and never throws exceptions.
Diffstat (limited to 'source/fitz/zip.c')
-rw-r--r--source/fitz/zip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/fitz/zip.c b/source/fitz/zip.c
index fbca0590..c7625a28 100644
--- a/source/fitz/zip.c
+++ b/source/fitz/zip.c
@@ -84,6 +84,8 @@ fz_close_zip_writer(fz_context *ctx, fz_zip_writer *zip)
fz_write_data(ctx, zip->output, "MuPDF", 5);
+ fz_close_output(ctx, zip->output);
+
zip->closed = 1;
}