diff options
author | random human <random.bored.human@gmail.com> | 2018-09-03 04:00:53 +0530 |
---|---|---|
committer | random human <random.bored.human@gmail.com> | 2018-09-03 04:00:53 +0530 |
commit | 6af77e3d9eee492c80830f197354fdd676873469 (patch) | |
tree | 1b414f97d679487eeacedda77b8ea634370f0607 /examples | |
parent | de16defb21801399d2f4715dd5820d2f5d2a9deb (diff) |
Release pointers in examples/multi-pointer
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multi-pointer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c index 87beafab..49670c39 100644 --- a/examples/multi-pointer.c +++ b/examples/multi-pointer.c @@ -330,6 +330,11 @@ int main(int argc, char *argv[]) { 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_output_layout_destroy(state.layout); } |