[poppler] qt5/src
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Oct 30 20:47:31 UTC 2017
qt5/src/ArthurOutputDev.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4d109589e5d2ac989d4fd7ac318ddf976f3106ed
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date: Sun Oct 29 20:28:52 2017 +0100
Fix leak in ArthurOutputDev::updateFont
Bug #103508
diff --git a/qt5/src/ArthurOutputDev.cc b/qt5/src/ArthurOutputDev.cc
index 3be12672..8d3c801e 100644
--- a/qt5/src/ArthurOutputDev.cc
+++ b/qt5/src/ArthurOutputDev.cc
@@ -341,6 +341,9 @@ void ArthurOutputDev::updateFont(GfxState *state)
m_rawFont = new QRawFont(QByteArray(fontData, fontDataLen), fontSize);
m_rawFontCache.insert(std::make_pair(fontID,std::unique_ptr<QRawFont>(m_rawFont)));
+
+ // Free the font data, it was copied in the QByteArray constructor
+ free((char*)fontData);
break;
}
case gfxFontLocExternal:{ // font is in an external font file
More information about the poppler
mailing list