From 6af748171a3f21c48847b53337df792576750a18 Mon Sep 17 00:00:00 2001 From: Chris Chamberlain Date: Sun, 17 Jan 2021 22:26:10 +1100 Subject: [PATCH] Free xwayland cursor in wlr_xwayland_destroy One of many memory leaks detected by an asan build --- xwayland/xwayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 4cb103af..f0999120 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -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);