summaryrefslogtreecommitdiffstats
path: root/vcl/generic/glyphs
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2015-08-20 22:53:19 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-08-25 15:11:34 +0000
commit20618ddc2793064c7c55d9c765a8113abb45b153 (patch)
treeb7a4596011f19b8633f04b9750eb7c31abc1fb7e /vcl/generic/glyphs
parenttdf#93351: Edit style button in Schema & Numbering should point to List styles (diff)
downloadcore-20618ddc2793064c7c55d9c765a8113abb45b153.tar.gz
core-20618ddc2793064c7c55d9c765a8113abb45b153.zip
fixes a memory leak that appeared in tdf#93392 valgrind trace
Change-Id: Ifd4c6594d50ff63235e75049bc7ab8bc79606fc8 Reviewed-on: https://gerrit.libreoffice.org/17880 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/generic/glyphs')
-rw-r--r--vcl/generic/glyphs/glyphcache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx
index c15e5485aff9..6f9e6114327f 100644
--- a/vcl/generic/glyphs/glyphcache.cxx
+++ b/vcl/generic/glyphs/glyphcache.cxx
@@ -60,6 +60,8 @@ void GlyphCache::InvalidateAllGlyphs()
for( FontList::iterator it = maFontList.begin(), end = maFontList.end(); it != end; ++it )
{
ServerFont* pServerFont = it->second;
+ // free all pServerFont related data
+ pServerFont->GarbageCollect( mnLruIndex+0x10000000 );
mrPeer.RemovingFont(*pServerFont);
delete pServerFont;
}