mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-25 03:59:31 +02:00
LazUtils: Finalize FreeTypeFont instance only when needed. Issue #29151, patch from Andrey Zubarev.
git-svn-id: trunk@50712 -
This commit is contained in:
parent
a241940af1
commit
67bbb06ba6
@ -1138,7 +1138,8 @@ procedure TFreeTypeFont.DiscardInstance;
|
||||
begin
|
||||
if FInstanceCreated then
|
||||
begin
|
||||
TT_Done_Instance(FInstance);
|
||||
if FreeTypeInitialized then
|
||||
TT_Done_Instance(FInstance);
|
||||
FInstanceCreated := false;
|
||||
FGlyphTable.FreeAndClear;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user