Skip to content

Commit

Permalink
server: fix wlr_seat use-after-free on exit
Browse files Browse the repository at this point in the history
Same as [1].

I originally tried to properly handle seat destruction, but that
turned out to be a can of worms [2].

[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4590
[2]: swaywm#8034
  • Loading branch information
emersion authored and frosklis committed Mar 31, 2024
1 parent 47f6b1f commit 656b8e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/server.c
Expand Up @@ -399,6 +399,7 @@ void server_fini(struct sway_server *server) {
wlr_xwayland_destroy(server->xwayland.wlr_xwayland);
#endif
wl_display_destroy_clients(server->wl_display);
wlr_backend_destroy(server->backend);
wl_display_destroy(server->wl_display);
list_free(server->dirty_nodes);
}
Expand Down

0 comments on commit 656b8e3

Please sign in to comment.