aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-12-18 19:53:44 +0100
committerSimon Ser <contact@emersion.fr>2020-12-19 10:39:31 +0100
commit6c08fe979615ac88648eb91c87ea4c41fa1d7bdf (patch)
treea1b33efdfdf8124e0971cc9057a598c8a1621d68
parent917ecca58ea8ec88a413982502108903066641f0 (diff)
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.
-rw-r--r--xwayland/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/server.c b/xwayland/server.c
index f72b668d..6a0c9fc3 100644
--- a/xwayland/server.c
+++ b/xwayland/server.c
@@ -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;