From 883354ffb1856846ea002e570c1eccdfb54c09c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 30 Oct 2019 20:25:16 +0100 Subject: [PATCH] wayland: wayl_win_destroy(): return early if win == NULL --- wayland.c | 3 +++ 1 file changed, 3 insertions(+) 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);