aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-11-02 11:42:42 +0100
committeremersion <contact@emersion.fr>2017-11-02 11:42:42 +0100
commitb46d2a8b33a798b42deee2a822dac004364e8337 (patch)
tree2d49c933db8c67b997e62be2ecc9a31ee827e1ee
parentd11973ed7d6881cbef879d505829b16be04b03f4 (diff)
Fix wlr_output_cursor_destroy
-rw-r--r--types/wlr_output.c6
1 files changed, 6 insertions, 0 deletions
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);
}