LazCanvas: Fix memory leak when working with regions.

This commit is contained in:
wp_xyz 2025-05-16 19:34:52 +02:00
parent 09dee74383
commit e48ca31534

View File

@ -225,6 +225,7 @@ end;
destructor TLazRegion.Destroy; destructor TLazRegion.Destroy;
begin begin
Clear;
Parts.Free; Parts.Free;
inherited Destroy; inherited Destroy;
end; end;