menu: fix UAF in client-list-combined-menu after window destruction

client-list-combined-menu should be updated when a window is destroyed,
otherwise we get SEGFAULT when selecting an old window entry in it.
This commit is contained in:
tokyo4j 2024-10-23 20:47:48 +09:00
parent 2b1a694154
commit 4f007109f6

View file

@ -2473,5 +2473,6 @@ view_destroy(struct view *view)
wl_list_remove(&view->link);
free(view);
update_client_list_combined_menu(server);
cursor_update_focus(server);
}