From c038cf4db5122259a790aa0f15f391b375f7540a Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 16 Jun 2016 17:32:20 +0100 Subject: Fix crash due to double closing output in pdf_save_document. Broken due to refactoring. Thanks to Michael for spotting this. --- source/pdf/pdf-write.c | 1 - 1 file changed, 1 deletion(-) diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index cadb9f82..45b725fb 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -2745,7 +2745,6 @@ static void finalise_write_state(fz_context *ctx, pdf_write_state *opts) pdf_drop_obj(ctx, opts->hints_s); pdf_drop_obj(ctx, opts->hints_length); page_objects_list_destroy(ctx, opts->page_object_lists); - fz_drop_output(ctx, opts->out); } static int opteq(const char *a, const char *b) -- cgit v1.2.3