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

2
dwl.c
View file

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