mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
wayland: wayl_win_destroy(): return early if win == NULL
This commit is contained in:
parent
c7238ef7f3
commit
883354ffb1
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue