fixed memory leak

git-svn-id: trunk@14441 -
This commit is contained in:
paul 2008-03-06 06:42:48 +00:00
parent dd277a960c
commit be2b8c751e

View File

@ -1160,9 +1160,14 @@ begin
end;
destructor TIDEMenuSection.Destroy;
var
AHandlerType: TIDEMenuSectionHandlerType;
begin
Clear;
FItems.Free;
for AHandlerType := Low(TIDEMenuSectionHandlerType) to High(TIDEMenuSectionHandlerType) do
if FSectionHandlers[AHandlerType] <> nil then
FreeAndNil(FSectionHandlers[AHandlerType]);
inherited Destroy;
end;