mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
Fix wlr_output_cursor_destroy
This commit is contained in:
parent
d11973ed7d
commit
b46d2a8b33
1 changed files with 6 additions and 0 deletions
|
|
@ -504,6 +504,12 @@ void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor) {
|
||||||
}
|
}
|
||||||
cursor->output->hardware_cursor = NULL;
|
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);
|
wl_list_remove(&cursor->link);
|
||||||
free(cursor);
|
free(cursor);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue