even more memleak fixes
authorMatthias Kramm <kramm@quiss.org>
Fri, 5 Feb 2010 01:01:36 +0000 (17:01 -0800)
committerMatthias Kramm <kramm@quiss.org>
Fri, 5 Feb 2010 01:01:36 +0000 (17:01 -0800)
lib/gfxfont.c
lib/pdf/InfoOutputDev.cc

index db78c25..efe29c3 100644 (file)
@@ -511,6 +511,9 @@ void gfxfont_free(gfxfont_t*font)
     if(font->id) {
        free((void*)font->id);font->id=0;
     }
     if(font->id) {
        free((void*)font->id);font->id=0;
     }
+    if(font->kerning) {
+       free(font->kerning);font->kerning=0;
+    }
 
     free(font);
 }
 
     free(font);
 }
index 9f04518..7d7db0b 100644 (file)
@@ -103,6 +103,8 @@ FontInfo::~FontInfo()
            }
            dict_destroy(d);
        }
            }
            dict_destroy(d);
        }
+       free(kerning);
+       kerning=0;
     }
 }
 
     }
 }