Free xwayland cursor in wlr_xwayland_destroy
One of many memory leaks detected by an asan build
This commit is contained in:
parent
879cadd34e
commit
6af748171a
|
@ -64,6 +64,7 @@ void wlr_xwayland_destroy(struct wlr_xwayland *xwayland) {
|
||||||
|
|
||||||
wl_list_remove(&xwayland->server_destroy.link);
|
wl_list_remove(&xwayland->server_destroy.link);
|
||||||
wl_list_remove(&xwayland->server_ready.link);
|
wl_list_remove(&xwayland->server_ready.link);
|
||||||
|
free(xwayland->cursor);
|
||||||
|
|
||||||
wlr_xwayland_set_seat(xwayland, NULL);
|
wlr_xwayland_set_seat(xwayland, NULL);
|
||||||
wlr_xwayland_server_destroy(xwayland->server);
|
wlr_xwayland_server_destroy(xwayland->server);
|
||||||
|
|
Loading…
Reference in New Issue