Merge pull request #348 from mikkeloscar/bar-segv

swaybar: Check that registry is set before teardown
This commit is contained in:
Drew DeVault 2015-12-16 20:55:26 -05:00
commit 3a829362f2

View file

@ -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);
}