mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
swaybar: Check that registry is set before teardown
This commit is contained in:
parent
d1405da502
commit
0f7614306d
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue