Fix memory leak in wlr_cursor

This commit is contained in:
emersion 2017-10-31 14:58:58 +01:00
parent 2c63aa2056
commit 7dc716a2bb
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 13 additions and 12 deletions

View file

@ -212,6 +212,11 @@ int main(int argc, char *argv[]) {
wl_display_run(compositor.display);
compositor_fini(&compositor);
struct sample_cursor *cursor;
wl_list_for_each(cursor, &state.cursors, link) {
// TODO
}
wlr_xcursor_theme_destroy(theme);
example_config_destroy(state.config);
wlr_output_layout_destroy(state.layout);