rev 387 - trunk

[email protected] Mon, 3 Jan 2005 23:04:17 -0800 (PST)
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
Author: giles
Date: 2005-01-03 23:04:17 -0800 (Mon, 03 Jan 2005)
New Revision: 387

Modified:
   trunk/jbig2_symbol_dict.c
Log:
Correctly free the (dynamic) glyph array when freeing a symbol=20
dictionary.


Modified: trunk/jbig2_symbol_dict.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/jbig2_symbol_dict.c	2005-01-04 05:17:39 UTC (rev 386)
+++ trunk/jbig2_symbol_dict.c	2005-01-04 07:04:17 UTC (rev 387)
@@ -117,6 +117,7 @@
    if (dict =3D=3D NULL) return;
    for (i =3D 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);
 }
=20