aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wayland.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index faf7cd6c..16442303 100644
--- a/wayland.c
+++ b/wayland.c
@@ -541,6 +541,9 @@ out:
void
wayl_destroy(struct wayland *wayl)
{
+ if (wayl == NULL)
+ return;
+
if (wayl->kbd.repeat.fd != 0) {
fdm_del(wayl->fdm, wayl->kbd.repeat.fd);
close(wayl->kbd.repeat.fd);