Browse Source

* reversed destruction order of TFPObjectList as per Mantis 13715.
Note that it is _NOT_ good coding to rely on such things

git-svn-id: trunk@13168 -

marco 16 years ago
parent
commit
501f20c546
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-base/src/contnrs.pp

+ 1 - 1
packages/fcl-base/src/contnrs.pp

@@ -613,7 +613,7 @@ var
   i: integer;
 begin
   if FFreeObjects then
-    for i := 0 to FList.Count - 1 do
+    for i := FList.Count-1 downto 0  do
       TObject(FList[i]).Free;
   FList.Clear;
 end;