Free xwayland cursor in wlr_xwayland_destroy

One of many memory leaks detected by an asan build
master
Chris Chamberlain 4 years ago committed by Simon Ser
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_ready.link);
free(xwayland->cursor);
wlr_xwayland_set_seat(xwayland, NULL);
wlr_xwayland_server_destroy(xwayland->server);

Loading…
Cancel
Save