mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
* Patch from Andrey Sobol to fix memleak
git-svn-id: trunk@47799 -
This commit is contained in:
parent
4235d2ce3d
commit
034048e09d
@ -435,7 +435,15 @@ initialization
|
||||
|
||||
finalization
|
||||
if Assigned(LocTransforms) then
|
||||
begin
|
||||
while LocTransforms.Count > 0 do
|
||||
begin
|
||||
if Assigned(PITSFTranformItem(LocTransforms.Items[0])^.Instance) then
|
||||
(PITSFTranformItem(LocTransforms.Items[0])^.Instance).Free;
|
||||
LocTransforms.Delete(0);
|
||||
end;
|
||||
LocTransforms.Free;
|
||||
end
|
||||
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user