Don't need to call wlr_backend_destroy
This commit is contained in:
parent
c092c8784b
commit
1e2bef4cae
2 changed files with 1 additions and 5 deletions
|
@ -48,7 +48,6 @@ server_init(struct kiwmi_server *server)
|
||||||
server->cursor = cursor_create(server->output_layout);
|
server->cursor = cursor_create(server->output_layout);
|
||||||
if (!server->cursor) {
|
if (!server->cursor) {
|
||||||
wlr_log(WLR_ERROR, "Failed to create cursor");
|
wlr_log(WLR_ERROR, "Failed to create cursor");
|
||||||
wlr_backend_destroy(server->backend);
|
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -71,7 +70,6 @@ server_run(struct kiwmi_server *server)
|
||||||
server->socket = wl_display_add_socket_auto(server->wl_display);
|
server->socket = wl_display_add_socket_auto(server->wl_display);
|
||||||
if (!server->socket) {
|
if (!server->socket) {
|
||||||
wlr_log(WLR_ERROR, "Failed to open Wayland socket");
|
wlr_log(WLR_ERROR, "Failed to open Wayland socket");
|
||||||
wlr_backend_destroy(server->backend);
|
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +79,6 @@ server_run(struct kiwmi_server *server)
|
||||||
|
|
||||||
if (!wlr_backend_start(server->backend)) {
|
if (!wlr_backend_start(server->backend)) {
|
||||||
wlr_log(WLR_ERROR, "Failed to start backend");
|
wlr_log(WLR_ERROR, "Failed to start backend");
|
||||||
wlr_backend_destroy(server->backend);
|
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -98,7 +95,6 @@ server_fini(struct kiwmi_server *server)
|
||||||
{
|
{
|
||||||
wlr_log(WLR_DEBUG, "Shutting down Wayland server");
|
wlr_log(WLR_DEBUG, "Shutting down Wayland server");
|
||||||
|
|
||||||
wlr_backend_destroy(server->backend);
|
|
||||||
wl_display_destroy_clients(server->wl_display);
|
wl_display_destroy_clients(server->wl_display);
|
||||||
wl_display_destroy(server->wl_display);
|
wl_display_destroy(server->wl_display);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ project(
|
||||||
add_project_arguments(
|
add_project_arguments(
|
||||||
[
|
[
|
||||||
'-DWLR_USE_UNSTABLE',
|
'-DWLR_USE_UNSTABLE',
|
||||||
'-D_POSIX_C_SOURCE=200112L'
|
'-D_POSIX_C_SOURCE=200112L',
|
||||||
],
|
],
|
||||||
language: 'c',
|
language: 'c',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue