mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-01 18:03:39 +02:00
fixed memory leak
git-svn-id: trunk@14441 -
This commit is contained in:
parent
dd277a960c
commit
be2b8c751e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user