summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-02-19 18:13:39 -0500
committerLibravatar GitHub <noreply@github.com>2018-02-19 18:13:39 -0500
commita274777ade28b44eb7172528d266e44061049dfe (patch)
tree06b448190e834d752bcc1070c5b94b6dd728c038
parentMerge pull request #1592 from dlrobertson/fix_mem_errors (diff)
parentFix segfault if swaybg is run without Wayland (diff)
downloadsway-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.c4
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