fixed a mem leak
[swftools.git] / lib / gfxfont.c
index 85af571..263757f 100644 (file)
@@ -508,6 +508,10 @@ void gfxfont_free(gfxfont_t*font)
     if(font->unicode2glyph) {
        free(font->unicode2glyph);font->unicode2glyph = 0;
     }
+    if(font->id) {
+       free((void*)font->id);font->id=0;
+    }
+
     free(font);
 }