[LazFreeType] findGlyphNode does not find existing glyps (Huge memory leak)
Original Reporter info from Mantis: scribly
-
Reporter name: Eric Heijnen
Original Reporter info from Mantis: scribly
- Reporter name: Eric Heijnen
Description:
It often happens that findGlyphNode(Index) returns nil for an index that has previously been added
In a routine like TFreeTypeFont.GetGlyph which is used for textrendering this will end up allocating memory quite a lot
It doesn't happen with all strings, but one that causes it is :'this is a test'
Steps to reproduce:
The lazarus example for FreeType. Tick the rect box (as it uses a string that does trigger the issue) and move the mouse. You'll see the memory usage go up quickly
Mantis conversion info:
- Mantis ID: 36827
- OS: Windows and Darwin
- OS Build: all
- Build: Laz fixes 2.0.7
- Platform: X86_64
- Version: 2.0.7 (SVN)