cocoa: menu preventing double release (seen in lazarus ide)

git-svn-id: trunk@58585 -
This commit is contained in:
dmitry 2018-07-21 15:19:42 +00:00
parent 55f7137e4e
commit 74719b3d1d

View File

@ -542,7 +542,7 @@ begin
parItem := TCocoaMenuItem(Item).parentItem;
if assigned(parItem) and parItem.isKindOfClass_(NSMenuItem) then
NSMenuItem(paritem).submenu.removeItem(NSMenuItem(item));
Item.Release;
//Item.Release;
AMenuItem.Handle := 0;
end
end;