Fix leak when calling remove_control_from_menu_panel
#82171
Merged
remove_control_from_menu_panel
#82171