* Make sure UpdateCount=0 when inherited destructor is called (and ooFree is dispatched (Bug ID 25821)

git-svn-id: trunk@26960 -
This commit is contained in:
michael 2014-03-05 09:22:19 +00:00
parent 15bb6b2c72
commit a1252febae

View File

@ -302,8 +302,12 @@ end;
destructor TCollection.Destroy;
begin
BeginUpdate; // Prevent OnChange
DoClear;
FUpdateCount:=1; // Prevent OnChange
try
DoClear;
Finally
FUpdateCount:=0;
end;
FItems.Free;
Inherited Destroy;
end;