shithub: jbig2

Download patch

ref: 48fd721f3fb53b3fd10456e508b06d808ee9e647
parent: 28cc0cf46dc9455545631e54070edc2a8adc15e0
author: Sebastian Rasmussen <sebras@gmail.com>
date: Mon Aug 6 13:13:39 EDT 2012

Bug 693256: Free GR_/GB_stats......

....as long as retaining them is yet to be implemented

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -1077,6 +1077,8 @@
   /* 7.4.2.2 (7) */
   if (flags & 0x0200) {
       /* todo: retain GB_stats, GR_stats */
+      jbig2_free(ctx->allocator, GR_stats);
+      jbig2_free(ctx->allocator, GB_stats);
       jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number,
           "segment marks bitmap coding context as retained (NYI)");
   } else {