From 1e2bef4cae54a52a5d6d723c62f6aeccf3ffb08f Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Sun, 17 Mar 2019 18:24:36 +0100 Subject: [PATCH] Don't need to call wlr_backend_destroy --- kiwmi/server.c | 4 ---- meson.build | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/kiwmi/server.c b/kiwmi/server.c index 3946681..5e90c68 100644 --- a/kiwmi/server.c +++ b/kiwmi/server.c @@ -48,7 +48,6 @@ server_init(struct kiwmi_server *server) server->cursor = cursor_create(server->output_layout); if (!server->cursor) { wlr_log(WLR_ERROR, "Failed to create cursor"); - wlr_backend_destroy(server->backend); wl_display_destroy(server->wl_display); return false; } @@ -71,7 +70,6 @@ server_run(struct kiwmi_server *server) server->socket = wl_display_add_socket_auto(server->wl_display); if (!server->socket) { wlr_log(WLR_ERROR, "Failed to open Wayland socket"); - wlr_backend_destroy(server->backend); wl_display_destroy(server->wl_display); return false; } @@ -81,7 +79,6 @@ server_run(struct kiwmi_server *server) if (!wlr_backend_start(server->backend)) { wlr_log(WLR_ERROR, "Failed to start backend"); - wlr_backend_destroy(server->backend); wl_display_destroy(server->wl_display); return false; } @@ -98,7 +95,6 @@ server_fini(struct kiwmi_server *server) { wlr_log(WLR_DEBUG, "Shutting down Wayland server"); - wlr_backend_destroy(server->backend); wl_display_destroy_clients(server->wl_display); wl_display_destroy(server->wl_display); } diff --git a/meson.build b/meson.build index 7eaf74b..e0a0a27 100644 --- a/meson.build +++ b/meson.build @@ -11,7 +11,7 @@ project( add_project_arguments( [ '-DWLR_USE_UNSTABLE', - '-D_POSIX_C_SOURCE=200112L' + '-D_POSIX_C_SOURCE=200112L', ], language: 'c', )