diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2021-01-20 18:53:12 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-05 11:45:54 +0100 |
commit | 8ad078f46f4bdea82354dc1fc94f2b36f9f05ed6 (patch) | |
tree | b55729efe10600ff963053ef0bf1e8b9afa59162 /xwayland | |
parent | a290d7a78dc36275e24e54f84570f37a66dc67a4 (diff) |
xwayland: free render picture backing cursor
Otherwise it gets leaked never to be recovered.
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index 6ddc10d2..0ca44bdd 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1832,6 +1832,7 @@ void xwm_set_cursor(struct wlr_xwm *xwm, const uint8_t *pixels, uint32_t stride, xcb_render_create_cursor(xwm->xcb_conn, xwm->cursor, pic, hotspot_x, hotspot_y); xcb_free_pixmap(xwm->xcb_conn, pix); + xcb_render_free_picture(xwm->xcb_conn, pic); uint32_t values[] = {xwm->cursor}; xcb_change_window_attributes(xwm->xcb_conn, xwm->screen->root, |