mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
xwayland: avoid crash on repeated server_finish_display() call
This function may end up being called more than once if the Xwayland binary does not exist on the system.
This commit is contained in:
parent
917ecca58e
commit
6c08fe9796
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ static void server_finish_display(struct wlr_xwayland_server *server) {
|
|||
}
|
||||
|
||||
wl_list_remove(&server->display_destroy.link);
|
||||
wl_list_init(&server->display_destroy.link);
|
||||
|
||||
if (server->display == -1) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue