mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 12:16:18 +02:00
Anchordocking: Use a different way to free unneeded controls.
git-svn-id: trunk@46750 -
This commit is contained in:
parent
8de1712110
commit
e09a1625bd
@ -3076,12 +3076,16 @@ begin
|
||||
until not Changed;
|
||||
|
||||
// free unneeded controls
|
||||
for i := fNeedFree.Count - 1 downto 0 do
|
||||
if csDestroying in TControl(fNeedFree[i]).ComponentState then
|
||||
TControl(fNeedFree[i]).Free;
|
||||
{ was:
|
||||
while fNeedFree.Count>0 do
|
||||
if csDestroying in TControl(fNeedFree[0]).ComponentState then
|
||||
fNeedFree.Delete(0)
|
||||
else
|
||||
TControl(fNeedFree[0]).Free;
|
||||
|
||||
}
|
||||
finally
|
||||
fSimplifying:=false;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user