aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index 60687bc5..d992b154 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -87,7 +87,9 @@ struct colors colors = {
87 87
88void sway_terminate(void) { 88void sway_terminate(void) {
89 window_teardown(window); 89 window_teardown(window);
90 registry_teardown(registry); 90 if (registry) {
91 registry_teardown(registry);
92 }
91 exit(EXIT_FAILURE); 93 exit(EXIT_FAILURE);
92} 94}
93 95