mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04: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
|
void
|
||||||
wayl_win_destroy(struct wl_window *win)
|
wayl_win_destroy(struct wl_window *win)
|
||||||
{
|
{
|
||||||
|
if (win == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
tll_free(win->on_outputs);
|
tll_free(win->on_outputs);
|
||||||
if (win->search_sub_surface != NULL)
|
if (win->search_sub_surface != NULL)
|
||||||
wl_subsurface_destroy(win->search_sub_surface);
|
wl_subsurface_destroy(win->search_sub_surface);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue