Commit a1869eca authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix bug #3586

parent 95529b41
2005-07-22 Albert Astals Cid <aacid@kde.org>
* poppler/CairoFontEngine.cc: Fix mem leak. Reported in bug #3586 by
Kjartan Maraas, initial patch by Martin Kretzschmar.
2005-07-22 Albert Astals Cid <aacid@kde.org>
* qt/test-poppler-qt.cpp: Make it possible to change the displayed
......
......@@ -229,6 +229,7 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib) {
if (FT_New_Face(lib, fileName->getCString(), 0, &face)) {
gfree(codeToGID);
codeToGID = NULL;
error(-1, "could not create cid face\n");
goto err2;
}
......@@ -270,6 +271,7 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib) {
CairoFont::~CairoFont() {
FT_Done_Face (face);
gfree(codeToGID);
}
GBool
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment