Fix use after free in menu_entry_frame_free