ref: c5393dfc4025b41895565f5b2a2f1786bffdf980
parent: c04c341b8cfbd2ee7b58269147a41bf6c24d7b7e
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Apr 5 19:39:53 EDT 2005
dd a missing break; in the segment release dispatch. Release of symbol dictionary segments was falling through and causing a double free of the result. Bug 688004. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@390 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -135,6 +135,7 @@
switch (segment->flags & 63) {
case 0: /* symbol dictionary */
jbig2_sd_release(ctx, segment->result);
+ break;
case 4: /* intermediate text region */
case 40: /* intermediate refinement region */
if (segment->result != NULL)
@@ -144,7 +145,7 @@
jbig2_metadata_free(ctx, segment->result);
break;
default:
- /* anything is is probably an undefined pointer */
+ /* anything else is probably an undefined pointer */
break;
}
jbig2_free (ctx->allocator, segment);