Ver código fonte

* Take care of Florian's remark that FList may be nil when constructor failed

git-svn-id: trunk@22593 -
michael 12 anos atrás
pai
commit
6eade12d3f
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      rtl/objpas/classes/lists.inc

+ 2 - 1
rtl/objpas/classes/lists.inc

@@ -646,7 +646,8 @@ end;
 
 destructor TList.Destroy;
 begin
-  Clear;
+  if Assigned(Flist) then
+    Clear;
   If Assigned(FObservers) then
     begin
     FPONotifyObservers(Self,ooFree,Nil);