[poppler] Branch 'better_object' - poppler/SplashOutputDev.cc

Joan Ronck jronck at aol.com
Fri May 12 20:39:27 UTC 2017


REMOVE MY NAME FROM THIS MAILING LIST!!!

Sent from my iPhone

On May 12, 2017, at 3:25 PM, Albert Astals Cid <aacid at kemper.freedesktop.org> wrote:

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))) {
_______________________________________________
poppler mailing list
poppler at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler



More information about the poppler mailing list