mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 15:31:28 +00:00
server: fix wlr_seat use-after-free on exit
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]: https://github.com/swaywm/sway/pull/8034
This commit is contained in:
parent
2e951163c5
commit
2b08e79061
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue