wayland: wayl_win_destroy(): return early if win == NULL

This commit is contained in:
Daniel Eklöf 2019-10-30 20:25:16 +01:00
parent c7238ef7f3
commit 883354ffb1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);