Commit 4d109589 authored by Oliver Sander's avatar Oliver Sander Committed by Albert Astals Cid
Browse files

Fix leak in ArthurOutputDev::updateFont

Bug #103508
parent b9ae2fd7
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment