even more memleak fixes
[swftools.git] / lib / pdf / InfoOutputDev.cc
index ba151a1..7d7db0b 100644 (file)
@@ -103,6 +103,8 @@ FontInfo::~FontInfo()
            }
            dict_destroy(d);
        }
+       free(kerning);
+       kerning=0;
     }
 }
 
@@ -247,10 +249,6 @@ static gfxfont_t* createGfxFont(FontInfo*src)
                font->kerning[pos].c1 = src->glyphs[t]->glyphid;
                font->kerning[pos].c2 = src->glyphs[(int)(ptroff_t)key]->glyphid;
                font->kerning[pos].advance = (int)(ptroff_t)m->first->key;
-               printf("kerning[%d] = (%d,%d,%d)\n", pos,
-                       font->kerning[pos].c1,
-                       font->kerning[pos].c2,
-                       font->kerning[pos].advance);
                pos++;
            }
        }