From 6a30afbe1bab7cc44e43d74e59e558714b2ef268 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 24 Mar 2014 17:10:18 +0000 Subject: Avoid double closing a stream. Michael spotted that double closing an fz_stream on an inline image does bad things. Simple fix is not to double close. --- source/pdf/pdf-stream.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c index 2c552e39..159e64a4 100644 --- a/source/pdf/pdf-stream.c +++ b/source/pdf/pdf-stream.c @@ -386,10 +386,6 @@ pdf_load_compressed_inline_image(pdf_document *doc, pdf_obj *dict, int length, f image->tile = fz_decomp_image_from_stream(ctx, istm, image, indexed, 0, 0); } - fz_always(ctx) - { - fz_close(istm); - } fz_catch(ctx) { fz_free(ctx, bc); -- cgit v1.2.3