mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-21 15:10:04 +01:00
IDEIntf: TIDEMenuItem: fixed not freeing MenuItems of TMenu
git-svn-id: branches/fixes_1_8@54989 -
This commit is contained in:
parent
fb14783b7c
commit
34c95ebef0
@ -730,7 +730,7 @@ begin
|
||||
if FMenuItem <> nil then begin
|
||||
FMenuItem.OnClick := nil;
|
||||
FMenuItem.RemoveHandlerOnDestroy(@MenuItemDestroy);
|
||||
if (Section<>nil) or (FMenuItem.Parent<>nil) then
|
||||
if (FMenuItem.Menu=nil) and ((Section<>nil) or (FMenuItem.Parent<>nil)) then
|
||||
FMenuItem.Free;
|
||||
FMenuItem:=nil;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user