mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
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:
parent
2b1a694154
commit
4f007109f6
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue