qt5/src/ArthurOutputDev.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4d109589e5d2ac989d4fd7ac318ddf976f3106ed
Author: Oliver Sander <[email protected]>
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
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler