1
0
Fork 0
mirror of https://github.com/NickHu/sway synced 2025-01-14 08:01:12 +01:00

swaybar: Check that registry is set before teardown

This commit is contained in:
Mikkel Oscar Lyderik 2015-12-17 02:45:14 +01:00
parent d1405da502
commit 0f7614306d

View file

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