From b46d2a8b33a798b42deee2a822dac004364e8337 Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 2 Nov 2017 11:42:42 +0100 Subject: [PATCH] Fix wlr_output_cursor_destroy --- types/wlr_output.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/wlr_output.c b/types/wlr_output.c index d4c6b2fe..c4589487 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -504,6 +504,12 @@ void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor) { } cursor->output->hardware_cursor = NULL; } + if (cursor->texture != NULL) { + wlr_texture_destroy(cursor->texture); + } + if (cursor->renderer != NULL) { + wlr_renderer_destroy(cursor->renderer); + } wl_list_remove(&cursor->link); free(cursor); }