Release pointers in examples/multi-pointer

This commit is contained in:
random human 2018-09-03 04:00:53 +05:30
parent de16defb21
commit 6af77e3d9e
No known key found for this signature in database
GPG key ID: 73E5A60444CC77A3

View file

@ -330,6 +330,11 @@ int main(int argc, char *argv[]) {
cursor_destroy(cursor); cursor_destroy(cursor);
} }
struct sample_pointer *pointer, *tmp_pointer;
wl_list_for_each_safe(pointer, tmp_pointer, &state.pointers, link) {
free(pointer);
}
wlr_xcursor_theme_destroy(theme); wlr_xcursor_theme_destroy(theme);
wlr_output_layout_destroy(state.layout); wlr_output_layout_destroy(state.layout);
} }