summaryrefslogtreecommitdiff
path: root/poppler/GfxFont.cc
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/GfxFont.cc')
-rw-r--r--poppler/GfxFont.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index 9cfa4f94..9ae54e6a 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -2054,7 +2054,7 @@ GfxFontDict::GfxFontDict(XRef *xref, Ref *fontDictRef, Dict *fontDict) {
// NULL and !isOk() so that when we do lookups
// we can tell the difference between a missing font
// and a font that is just !isOk()
- delete fonts[i];
+ fonts[i]->decRefCnt();
fonts[i] = NULL;
}
} else {