mirror of
https://github.com/swaywm/sway.git
synced 2026-04-03 07:15:39 -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);
|
window_teardown(window);
|
||||||
}
|
}
|
||||||
list_free(surfaces);
|
list_free(surfaces);
|
||||||
registry_teardown(registry);
|
if (registry) {
|
||||||
|
registry_teardown(registry);
|
||||||
|
}
|
||||||
exit(exit_code);
|
exit(exit_code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue