ref: 5f683dd6ad3bd0ec23cd7eac1307b235df8ad14f
parent: b8ebfef9bf8e78df6edd3c4e94f5d6e800d608d2
author: Chris Liddell <chris.liddell@artifex.com>
date: Fri Sep 18 05:49:55 EDT 2015
jbig2dec: release huffman table memory properly Freeing huffman table memory didn't use the jbig2dec allocator call, just called "free" directly. Caused a crash if the caller uses a custom allocator. No cluster differences.
--- a/jbig2_huffman.c
+++ b/jbig2_huffman.c
@@ -104,7 +104,7 @@
void
jbig2_huffman_free (Jbig2Ctx *ctx, Jbig2HuffmanState *hs)
{
- if (hs != NULL) free(hs);
+ if (hs != NULL) jbig2_free(ctx->allocator, hs);
return;
}