[Libreoffice-commits] core.git: vcl/generic

Dennis Francis dennisfrancis.in at gmail.com
Tue Aug 25 08:11:58 PDT 2015


 vcl/generic/glyphs/glyphcache.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 20618ddc2793064c7c55d9c765a8113abb45b153
Author: Dennis Francis <dennisfrancis.in at gmail.com>
Date:   Thu Aug 20 22:53:19 2015 +0530

    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 at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx
index c15e548..6f9e611 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;
     }


More information about the Libreoffice-commits mailing list