summaryrefslogtreecommitdiff
path: root/poppler
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2005-07-22 11:01:25 +0000
committerAlbert Astals Cid <aacid@kde.org>2005-07-22 11:01:25 +0000
commita1869eca39172fcb42f036a5846b19548be53568 (patch)
tree15e1cdc497e3ad72cc6ddd9a8de2f313544806a8 /poppler
parent95529b41272484f08fb54393e1886bf7ff3e02c8 (diff)
Fix bug #3586
Diffstat (limited to 'poppler')
-rw-r--r--poppler/CairoFontEngine.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/poppler/CairoFontEngine.cc b/poppler/CairoFontEngine.cc
index 0aa26d75..82d6dfc1 100644
--- a/poppler/CairoFontEngine.cc
+++ b/poppler/CairoFontEngine.cc
@@ -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