Free xwayland cursor in wlr_xwayland_destroy

One of many memory leaks detected by an asan build
This commit is contained in:
Chris Chamberlain 2021-01-17 22:26:10 +11:00 committed by Simon Ser
parent 879cadd34e
commit 6af748171a
1 changed files with 1 additions and 0 deletions

View File

@ -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);