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

Update client-list-combined-menu when a window is destroyed to avoid
SEGFAULT when selecting an that window entry in it.
This commit is contained in:
Johan Malm 2024-10-23 20:47:50 +01:00 committed by Johan Malm
parent 2b1a694154
commit e912964f73
3 changed files with 32 additions and 5 deletions

View file

@ -85,6 +85,7 @@ bool menu_call_selected_actions(struct server *server);
void menu_init(struct server *server);
void menu_finish(struct server *server);
void menu_on_view_destroy(struct view *view);
/**
* menu_get_by_id - get menu by id