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 63afc5b0..bc813f2e 100644
--- a/wayland.c
+++ b/wayland.c
@@ -684,6 +684,9 @@ out:
void
wayl_win_destroy(struct wl_window *win)
{
+ if (win == NULL)
+ return;
+
tll_free(win->on_outputs);
if (win->search_sub_surface != NULL)
wl_subsurface_destroy(win->search_sub_surface);