destroy renderer and allocator in cleanup()

This commit is contained in:
Leonardo Hernández Hernández 2022-09-28 14:15:25 -05:00
parent fc8b2a8335
commit c13d948ea9
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 2 additions and 0 deletions

2
dwl.c
View File

@ -730,6 +730,8 @@ cleanup(void)
waitpid(child_pid, NULL, 0);
}
wlr_backend_destroy(backend);
wlr_renderer_destroy(drw);
wlr_allocator_destroy(alloc);
wlr_xcursor_manager_destroy(cursor_mgr);
wlr_cursor_destroy(cursor);
wlr_output_layout_destroy(output_layout);