[poppler] Branch 'better_object' - poppler/SplashOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri May 12 20:25:53 UTC 2017
poppler/SplashOutputDev.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 0321bca7a3f6f5bd8b8f3e6ad13f4441e53c909b
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri May 12 22:25:36 2017 +0200
SplashOutputDev::doUpdateFont - Fix crash on broken file
diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc
index 1158ccc2..4bdc79c2 100644
--- a/poppler/SplashOutputDev.cc
+++ b/poppler/SplashOutputDev.cc
@@ -2075,8 +2075,10 @@ reload:
delete id;
delete fontLoc;
fontLoc = NULL;
- if (fontsrc && !fontsrc->isFile)
+ if (fontsrc && !fontsrc->isFile) {
fontsrc->unref();
+ fontsrc = nullptr;
+ }
id = new SplashOutFontFileID(gfxFont->getID());
if ((fontFile = fontEngine->getFontFile(id))) {
More information about the poppler
mailing list