mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
xwayland: do not double free server on destroy
This commit is contained in:
parent
03c88b07ba
commit
91da4c557b
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ struct wlr_xwayland_cursor {
|
||||||
static void handle_server_destroy(struct wl_listener *listener, void *data) {
|
static void handle_server_destroy(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_xwayland *xwayland =
|
struct wlr_xwayland *xwayland =
|
||||||
wl_container_of(listener, xwayland, server_destroy);
|
wl_container_of(listener, xwayland, server_destroy);
|
||||||
|
// Server is being destroyed so avoid destroying it once again.
|
||||||
|
xwayland->server = NULL;
|
||||||
wlr_xwayland_destroy(xwayland);
|
wlr_xwayland_destroy(xwayland);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue