From 1dc763159b03cbd4387713f353f26c890d2c0e52 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 17 Oct 2017 16:41:59 +0200 Subject: Add separate fz_close_output step. Closing flushes output and may throw exceptions. Dropping frees the state and never throws exceptions. --- source/fitz/zip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/zip.c') 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; } -- cgit v1.2.3