From c1285622846d51c21e6cb5b28d6fcc6018ec9ade Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 17 Aug 2018 20:28:26 +0200 Subject: [PATCH] feat(bar): clean exit --- src/client.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client.cpp b/src/client.cpp index 9a96409d..41e456a0 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -82,5 +82,11 @@ int waybar::Client::main(int /*argc*/, char* /*argv*/[]) { bindInterfaces(); gtk_main.run(); + bars.clear(); + zxdg_output_manager_v1_destroy(xdg_output_manager); + zwlr_layer_shell_v1_destroy(layer_shell); + wl_registry_destroy(registry); + wl_seat_destroy(seat); + wl_display_disconnect(wl_display); return 0; }