mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-02 09:01:42 -05:00
Don't segfault on termination
This commit is contained in:
parent
f805499487
commit
7d76b9ef76
1 changed files with 3 additions and 4 deletions
|
@ -199,13 +199,12 @@ bool start_wb(struct wb_server* server) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool terminate_wb(struct wb_server* server) {
|
bool terminate_wb(struct wb_server* server) {
|
||||||
|
wb_cursor_destroy(server->cursor);
|
||||||
|
wb_seat_destroy(server->seat);
|
||||||
|
wlr_output_layout_destroy(server->layout);
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
|
|
||||||
printf("Display destroyed.\n");
|
printf("Display destroyed.\n");
|
||||||
|
|
||||||
wb_cursor_destroy(server->cursor);
|
|
||||||
wb_seat_destroy(server->seat);
|
|
||||||
wlr_output_layout_destroy(server->layout);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue