summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-15 17:41:38 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-15 17:43:24 +0000
commit66c2ddc228960b1c1d365bff3255c9c992acf757 (patch)
tree62aab14074a7aeee544033000548e037a83b3132
parentbc310b35a8dcba3ef22dd80d15e032f7e94795ef (diff)
downloadmupdf-66c2ddc228960b1c1d365bff3255c9c992acf757.tar.xz
Avoid shadowing 'stm' variable.
This leads to a leak.
-rw-r--r--source/pdf/pdf-interpret.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c
index 76804c03..715a0f12 100644
--- a/source/pdf/pdf-interpret.c
+++ b/source/pdf/pdf-interpret.c
@@ -1277,7 +1277,7 @@ pdf_process_glyph(fz_context *ctx, pdf_processor *proc, pdf_document *doc, pdf_o
fz_try(ctx)
{
- fz_stream *stm = fz_open_buffer(ctx, contents);
+ stm = fz_open_buffer(ctx, contents);
pdf_process_stream(ctx, proc, &csi, stm);
pdf_process_end(ctx, proc, &csi);
}