mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: Fix segfault at exit (seen with wlroots master)
This commit is contained in:
parent
0eab7e082c
commit
423b569fdd
1 changed files with 6 additions and 1 deletions
|
|
@ -748,6 +748,11 @@ xwayland_server_init(struct server *server, struct wlr_compositor *compositor)
|
||||||
void
|
void
|
||||||
xwayland_server_finish(struct server *server)
|
xwayland_server_finish(struct server *server)
|
||||||
{
|
{
|
||||||
wlr_xwayland_destroy(server->xwayland);
|
struct wlr_xwayland *xwayland = server->xwayland;
|
||||||
|
/*
|
||||||
|
* Reset server->xwayland to NULL first to prevent callbacks (like
|
||||||
|
* server_global_filter) from accessing it as it is destroyed
|
||||||
|
*/
|
||||||
server->xwayland = NULL;
|
server->xwayland = NULL;
|
||||||
|
wlr_xwayland_destroy(xwayland);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue