mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 13:09:15 +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
|
finalization
|
||||||
if Assigned(LocTransforms) then
|
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;
|
LocTransforms.Free;
|
||||||
|
end
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user