mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Merge pull request #1596 from nickbp/0.15
Fix segfault if swaybg is run without Wayland
This commit is contained in:
commit
a274777ade
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue