Explorar el Código

* Re-instated initialization of memory when adding item

git-svn-id: trunk@32332 -
michael hace 9 años
padre
commit
7d2c723a54
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rtl/objpas/classes/stringl.inc

+ 1 - 1
rtl/objpas/classes/stringl.inc

@@ -1129,7 +1129,7 @@ begin
   If Index<FCount then
     System.Move (FList^[Index],FList^[Index+1],
                  (FCount-Index)*SizeOf(TStringItem));
-//  Pointer(Flist^[Index].Fstring):=Nil;  // Needed to initialize...
+  Pointer(Flist^[Index].Fstring):=Nil;  // Needed to initialize...
   Flist^[Index].FString:=S;
   Flist^[Index].FObject:=O;
   Inc(FCount);