瀏覽代碼

* Fix bug #33516

git-svn-id: trunk@38627 -
michael 7 年之前
父節點
當前提交
31a354a3bc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      rtl/objpas/classes/collect.inc

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

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