shithub: jbig2

Download patch

ref: 3cf2d67fafefb607c8d436f2185d092457274cdb
parent: ad0de34366fd42c8f95d519dccb91115c4278580
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Jan 4 02:04:17 EST 2005

Correctly free the (dynamic) glyph array when freeing a symbol 
dictionary.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@387 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -117,6 +117,7 @@
    if (dict == NULL) return;
    for (i = 0; i < dict->n_symbols; i++)
      if (dict->glyphs[i]) jbig2_image_release(ctx, dict->glyphs[i]);
+   jbig2_free(ctx->allocator, dict->glyphs);
    jbig2_free(ctx->allocator, dict);
 }