swaybar: Check that registry is set before teardown

master
Mikkel Oscar Lyderik 9 years ago
parent d1405da502
commit 0f7614306d

@ -87,7 +87,9 @@ struct colors colors = {
void sway_terminate(void) { void sway_terminate(void) {
window_teardown(window); window_teardown(window);
registry_teardown(registry); if (registry) {
registry_teardown(registry);
}
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

Loading…
Cancel
Save