mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 22:18:15 +02:00
LCL: workaround for fpc leak with FClipRegion (missing free in destructor).issue #24980
git-svn-id: trunk@42692 -
This commit is contained in:
parent
9e8ac69776
commit
93b81bdd04
@ -1545,6 +1545,8 @@ destructor TCanvas.Destroy;
|
||||
begin
|
||||
//DebugLn('[TCanvas.Destroy] ',ClassName,' Self=',DbgS(Self));
|
||||
Handle := 0;
|
||||
if FClipRegion <> nil then {issue #24980 looks like TFPCustomCanvas bug}
|
||||
FreeThenNil(FClipRegion);
|
||||
FreeThenNil(FRegion);
|
||||
FreeThenNil(FSavedHandleStates);
|
||||
if FLock <> 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user