Browse Source

+ Changed FreeAndNil to simple free (From Mattias Gaertner)

michael 20 years ago
parent
commit
360f273759
1 changed files with 6 additions and 3 deletions
  1. 6 3
      fcl/inc/contnrs.pp

+ 6 - 3
fcl/inc/contnrs.pp

@@ -172,7 +172,7 @@ begin
   if OwnsObjects then
   if OwnsObjects then
     begin
     begin
     O:=GetItem(Index);
     O:=GetItem(Index);
-    FreeAndNil(O);
+    O.Free;
     end;
     end;
   Put(Index,Pointer(AObject));
   Put(Index,Pointer(AObject));
 end;
 end;
@@ -505,7 +505,10 @@ end.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.8  2004-12-22 15:33:24  peter
+  Revision 1.9  2004-12-24 09:18:38  michael
+  + Changed FreeAndNil to simple free (From Mattias Gaertner)
+
+  Revision 1.8  2004/12/22 15:33:24  peter
     * fixed compile
     * fixed compile
 
 
   Revision 1.7  2004/12/22 12:05:41  michael
   Revision 1.7  2004/12/22 12:05:41  michael
@@ -529,4 +532,4 @@ end.
   Revision 1.1  2002/07/16 13:34:39  florian
   Revision 1.1  2002/07/16 13:34:39  florian
     + skeleton for contnr.pp added
     + skeleton for contnr.pp added
 
 
-}
+}