Kaydet (Commit) 20618ddc authored tarafından Dennis Francis's avatar Dennis Francis Kaydeden (comit) Caolán McNamara

fixes a memory leak that appeared in tdf#93392 valgrind trace

Change-Id: Ifd4c6594d50ff63235e75049bc7ab8bc79606fc8
Reviewed-on: https://gerrit.libreoffice.org/17880Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst ad8e2baf
...@@ -60,6 +60,8 @@ void GlyphCache::InvalidateAllGlyphs() ...@@ -60,6 +60,8 @@ void GlyphCache::InvalidateAllGlyphs()
for( FontList::iterator it = maFontList.begin(), end = maFontList.end(); it != end; ++it ) for( FontList::iterator it = maFontList.begin(), end = maFontList.end(); it != end; ++it )
{ {
ServerFont* pServerFont = it->second; ServerFont* pServerFont = it->second;
// free all pServerFont related data
pServerFont->GarbageCollect( mnLruIndex+0x10000000 );
mrPeer.RemovingFont(*pServerFont); mrPeer.RemovingFont(*pServerFont);
delete pServerFont; delete pServerFont;
} }
......
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