mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 08:21:28 +00:00
Merge pull request #348 from mikkeloscar/bar-segv
swaybar: Check that registry is set before teardown
This commit is contained in:
commit
3a829362f2
|
@ -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…
Reference in a new issue