From e47d392189dc87d32caf72cc6479117d512405a4 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 4 Feb 2010 17:01:36 -0800 Subject: [PATCH] even more memleak fixes --- lib/gfxfont.c | 3 +++ lib/pdf/InfoOutputDev.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/lib/gfxfont.c b/lib/gfxfont.c index db78c25..efe29c3 100644 --- a/lib/gfxfont.c +++ b/lib/gfxfont.c @@ -511,6 +511,9 @@ void gfxfont_free(gfxfont_t*font) if(font->id) { free((void*)font->id);font->id=0; } + if(font->kerning) { + free(font->kerning);font->kerning=0; + } free(font); } diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 9f04518..7d7db0b 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -103,6 +103,8 @@ FontInfo::~FontInfo() } dict_destroy(d); } + free(kerning); + kerning=0; } } -- 1.7.10.4