mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 11:19:14 +02:00
lcl: there is no need to check something for nil before .Free call
git-svn-id: trunk@42710 -
This commit is contained in:
parent
36bd622f95
commit
857774a646
@ -1545,8 +1545,7 @@ 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(FClipRegion); {issue #24980 looks like TFPCustomCanvas bug}
|
||||
FreeThenNil(FRegion);
|
||||
FreeThenNil(FSavedHandleStates);
|
||||
if FLock <> 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user