]> git.eshelyaron.com Git - emacs.git/commit
Fix crash in NS menu code
authorAlan Third <alan@idiocy.org>
Mon, 28 Dec 2020 15:02:39 +0000 (15:02 +0000)
committerAlan Third <alan@idiocy.org>
Mon, 28 Dec 2020 18:03:48 +0000 (18:03 +0000)
commit16458631d49a19bd496a45517264059383e18c18
tree38e5daf188ebd437742c583df21aca6511ebf2be
parent5e1416fd0a41c4b7d13d3cd6ecedab48ae7b55b5
Fix crash in NS menu code

* src/nsmenu.m (ns_update_menubar): Don't assume that the top level
menus are correct when populating the submenus.
(free_frame_menubar): Clear the menu.
([EmacsMenu removeAllItems]): Actually remove all menu items.
src/nsmenu.m