Browse Source

* Fix bug #33516

git-svn-id: trunk@38627 -
michael 7 years ago
parent
commit
31a354a3bc
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/objpas/classes/collect.inc

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

@@ -304,7 +304,8 @@ destructor TCollection.Destroy;
 begin
 begin
   FUpdateCount:=1; // Prevent OnChange
   FUpdateCount:=1; // Prevent OnChange
   try
   try
-    DoClear;
+    if Assigned(FItems) then
+      DoClear;
   Finally
   Finally
     FUpdateCount:=0;
     FUpdateCount:=0;
   end;
   end;