mirror of https://github.com/swaywm/sway.git
Fix segfault if swaybg is run without Wayland
Mirrors a similar check in `swaylock/main.c`
This commit is contained in:
parent
ddc8000384
commit
6816253110
|
@ -31,7 +31,9 @@ void sway_terminate(int exit_code) {
|
|||
window_teardown(window);
|
||||
}
|
||||
list_free(surfaces);
|
||||
registry_teardown(registry);
|
||||
if (registry) {
|
||||
registry_teardown(registry);
|
||||
}
|
||||
exit(exit_code);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue