Browse Source

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

git-svn-id: trunk@22593 -
michael 13 years ago
parent
commit
6eade12d3f
1 changed files with 2 additions and 1 deletions
  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);