aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index f30e1b6f..2a79bb10 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1426,6 +1426,14 @@ wayl_win_destroy(struct wl_window *win)
tll_free(win->on_outputs);
+ tll_foreach(win->urls, it) {
+ if (it->item.sub_surf != NULL)
+ wl_subsurface_destroy(it->item.sub_surf);
+ if (it->item.surf != NULL)
+ wl_surface_destroy(it->item.surf);
+ }
+ tll_free(win->urls);
+
csd_destroy(win);
if (win->render_timer_sub_surface != NULL)
wl_subsurface_destroy(win->render_timer_sub_surface);