diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-19 18:13:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 18:13:39 -0500 |
commit | a274777ade28b44eb7172528d266e44061049dfe (patch) | |
tree | 06b448190e834d752bcc1070c5b94b6dd728c038 | |
parent | Merge pull request #1592 from dlrobertson/fix_mem_errors (diff) | |
parent | Fix segfault if swaybg is run without Wayland (diff) | |
download | sway-a274777ade28b44eb7172528d266e44061049dfe.tar.gz sway-a274777ade28b44eb7172528d266e44061049dfe.tar.zst sway-a274777ade28b44eb7172528d266e44061049dfe.zip |
Merge pull request #1596 from nickbp/0.15
Fix segfault if swaybg is run without Wayland
-rw-r--r-- | swaybg/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybg/main.c b/swaybg/main.c index 2fdd4220..3124ae3d 100644 --- a/swaybg/main.c +++ b/swaybg/main.c | |||
@@ -31,7 +31,9 @@ void sway_terminate(int exit_code) { | |||
31 | window_teardown(window); | 31 | window_teardown(window); |
32 | } | 32 | } |
33 | list_free(surfaces); | 33 | list_free(surfaces); |
34 | registry_teardown(registry); | 34 | if (registry) { |
35 | registry_teardown(registry); | ||
36 | } | ||
35 | exit(exit_code); | 37 | exit(exit_code); |
36 | } | 38 | } |
37 | 39 | ||