Explorar o código

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

git-svn-id: trunk@22593 -
michael %!s(int64=13) %!d(string=hai) anos
pai
achega
6eade12d3f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);