aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-30 14:42:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-07 15:33:31 +0000
commitb255aea3edc4be75226e6ae6807d2a31ca42aeba (patch)
treec0e0f1d34fb753002296c1202eab4150201dec4c
parentconfig: add infrastructure to handle URL mode specific key bindings (diff)
config: free URL bindings
-rw-r--r--config.c1
-rw-r--r--wayland.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/config.c b/config.c
index edbf6d58..5fccbea4 100644
--- a/config.c
+++ b/config.c
@@ -2406,6 +2406,7 @@ config_free(struct config conf)
tll_free(conf.bindings.key);
tll_free(conf.bindings.mouse);
tll_free(conf.bindings.search);
+ tll_free(conf.bindings.url);
user_notifications_free(&conf.notifications);
}
diff --git a/wayland.c b/wayland.c
index d3c560b7..f30e1b6f 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)