[poppler] poppler/CairoFontEngine.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Sun Jan 24 04:35:49 PST 2010


 poppler/CairoFontEngine.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5ad492df75c0c2394719e85db4c8b43f15b52110
Author: mpsuzuki <mpsuzuki at hiroshima-u.ac.jp>
Date:   Sun Jan 24 13:34:41 2010 +0100

    [cairo] Fix memory leak

diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 20e6b9e..f08d893 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -489,6 +489,7 @@ CairoFreeTypeFont *CairoFreeTypeFont::create(GfxFont *gfxFont, XRef *xref,
       codeToGID = ((Gfx8BitFont *)gfxFont)->getCodeToGIDMap(ff);
       codeToGIDLen = 256;
     }
+    delete ff;
     if (! _ft_new_face (lib, fileName->getCString(), &face, &font_face)) {
       error(-1, "could not create truetype face\n");
       goto err2;


More information about the poppler mailing list