diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-17 02:45:14 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-17 02:45:14 +0100 |
commit | 0f7614306d7d995dfec8b0e99dad2439cd4d3834 (patch) | |
tree | 6f495d96d8e57131667bf576e283fd7951453683 /swaybar/main.c | |
parent | d1405da502b89fefa138a4ca8a47210e8080bf59 (diff) |
swaybar: Check that registry is set before teardown
Diffstat (limited to 'swaybar/main.c')
-rw-r--r-- | swaybar/main.c | 4 |
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 = { void sway_terminate(void) { window_teardown(window); - registry_teardown(registry); + if (registry) { + registry_teardown(registry); + } exit(EXIT_FAILURE); } |