aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-08 09:06:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-08 09:06:13 +0000
commit63a50afc8e7d2b315e896f4469112f4240a1592e (patch)
tree99429f79b9df9436dcb4454c7dbd05402e03e727 /wayland.c
parentMerge branch 'xassert-performance-regression-2' (diff)
parenturl-mode: urls_render(): early exit when URL list is empty (diff)
Merge branch 'url-detection'
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index d3c560b7..2a79bb10 100644
--- a/wayland.c
+++ b/wayland.c
@@ -148,6 +148,10 @@ seat_destroy(struct seat *seat)
tll_free(it->item.bind.key_codes);
tll_free(seat->kbd.bindings.search);
+ tll_foreach(seat->kbd.bindings.url, it)
+ tll_free(it->item.bind.key_codes);
+ tll_free(seat->kbd.bindings.url);
+
tll_free(seat->mouse.bindings);
if (seat->kbd.xkb_compose_state != NULL)
@@ -1422,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);