ref: 6f9608495e1f4b1fcac518378a44e8704d943dd7
parent: 9df6dfdae0f2ffba6f1335a8a6c5e2a2274e0d84
author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
date: Sat Jun 23 18:14:43 EDT 2012
Bug 693050 : Fix memory leak in 4faa folder
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -804,7 +804,6 @@
jbig2_sd_release(ctx, refagg_dicts[0]);
jbig2_free(ctx->allocator, refagg_dicts);
}
- jbig2_free(ctx->allocator, GB_stats);
cleanup2:
jbig2_sd_release(ctx, SDNEWSYMS);
@@ -1078,9 +1077,9 @@
jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
"segment marks bitmap coding context as retained (NYI)");
} else {
- /* todo: free GB_stats, GR_stats */
+ jbig2_free(ctx->allocator, GR_stats);
+ jbig2_free(ctx->allocator, GB_stats);
}
- jbig2_free(ctx->allocator, GR_stats);
cleanup:
if (params.SDHUFF) {