MADS: Properly free menu items when main menu is freed