Merge pull request #1596 from nickbp/0.15

Fix segfault if swaybg is run without Wayland
This commit is contained in:
Drew DeVault 2018-02-19 18:13:39 -05:00 committed by GitHub
commit a274777ade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}