summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-stream.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-03-24 17:10:18 +0000
committerRobin Watts <robin.watts@artifex.com>2014-03-25 16:44:51 +0000
commit6a30afbe1bab7cc44e43d74e59e558714b2ef268 (patch)
tree1c29b14a668044f81991fbd70f347e1b856a5620 /source/pdf/pdf-stream.c
parent3e6f3f15dd288be573b86d9013ba9f49e3bd7fdf (diff)
downloadmupdf-6a30afbe1bab7cc44e43d74e59e558714b2ef268.tar.xz
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.
Diffstat (limited to 'source/pdf/pdf-stream.c')
-rw-r--r--source/pdf/pdf-stream.c4
1 files changed, 0 insertions, 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);