mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-04 15:25:04 +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;
|
end;
|
||||||
|
|
||||||
destructor TIDEMenuSection.Destroy;
|
destructor TIDEMenuSection.Destroy;
|
||||||
|
var
|
||||||
|
AHandlerType: TIDEMenuSectionHandlerType;
|
||||||
begin
|
begin
|
||||||
Clear;
|
Clear;
|
||||||
FItems.Free;
|
FItems.Free;
|
||||||
|
for AHandlerType := Low(TIDEMenuSectionHandlerType) to High(TIDEMenuSectionHandlerType) do
|
||||||
|
if FSectionHandlers[AHandlerType] <> nil then
|
||||||
|
FreeAndNil(FSectionHandlers[AHandlerType]);
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user