summaryrefslogtreecommitdiffstats
path: root/swaybg
diff options
context:
space:
mode:
Diffstat (limited to 'swaybg')
-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