diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/glyphs/glyphcache.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/generic/glyphs/glyphcache.cxx b/vcl/unx/generic/glyphs/glyphcache.cxx index cbdfbb1bb87d..c802df0e3cc0 100644 --- a/vcl/unx/generic/glyphs/glyphcache.cxx +++ b/vcl/unx/generic/glyphs/glyphcache.cxx @@ -266,7 +266,6 @@ void GlyphCache::GarbageCollect() pFreetypeFont->GarbageCollect( mnLruIndex+0x10000000 ); if( pFreetypeFont == mpCurrentGCFont ) mpCurrentGCFont = nullptr; - maFontList.erase(pFreetypeFont->GetFontInstance()); mnBytesUsed -= pFreetypeFont->GetByteCount(); // remove font from list of garbage collected fonts @@ -277,7 +276,7 @@ void GlyphCache::GarbageCollect() if( pFreetypeFont == mpCurrentGCFont ) mpCurrentGCFont = nullptr; - delete pFreetypeFont; + maFontList.erase(pFreetypeFont->GetFontInstance()); } } |