From 9def0790e030dd7cad90b455577bb8cf0f711f93 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 24 Mar 2014 17:32:54 +0000 Subject: Tidy up code in pdf_load_compressed_inline_image After rushing to get the fix for a crash in, I realised the routine could be simplified a bit. --- source/pdf/pdf-stream.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/pdf/pdf-stream.c') diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c index 159e64a4..54cf87fe 100644 --- a/source/pdf/pdf-stream.c +++ b/source/pdf/pdf-stream.c @@ -371,9 +371,6 @@ pdf_load_compressed_inline_image(pdf_document *doc, pdf_obj *dict, int length, f { fz_context *ctx = doc->ctx; fz_compressed_buffer *bc = fz_malloc_struct(ctx, fz_compressed_buffer); - fz_stream *istm = NULL; - - fz_var(istm); fz_try(ctx) { @@ -382,9 +379,9 @@ pdf_load_compressed_inline_image(pdf_document *doc, pdf_obj *dict, int length, f stm = pdf_open_inline_stream(doc, dict, length, stm, &bc->params); stm = fz_open_leecher(stm, bc->buffer); - istm = fz_open_image_decomp_stream(ctx, stm, &bc->params, &dummy_l2factor); + stm = fz_open_image_decomp_stream(ctx, stm, &bc->params, &dummy_l2factor); - image->tile = fz_decomp_image_from_stream(ctx, istm, image, indexed, 0, 0); + image->tile = fz_decomp_image_from_stream(ctx, stm, image, indexed, 0, 0); } fz_catch(ctx) { -- cgit v1.2.3