mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-08 21:06:07 +02:00
LazCanvas: Fix memory leak when working with regions.
This commit is contained in:
parent
09dee74383
commit
e48ca31534
@ -225,6 +225,7 @@ end;
|
|||||||
|
|
||||||
destructor TLazRegion.Destroy;
|
destructor TLazRegion.Destroy;
|
||||||
begin
|
begin
|
||||||
|
Clear;
|
||||||
Parts.Free;
|
Parts.Free;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user