aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 2f0e632c..c22646f2 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1607,8 +1607,6 @@ term_destroy(struct terminal *term)
if (term == NULL)
return 0;
- key_binding_unref(term->wl->key_binding_manager, term->conf);
-
tll_foreach(term->wl->terms, it) {
if (it->item == term) {
tll_remove(term->wl->terms, it);
@@ -1654,6 +1652,8 @@ term_destroy(struct terminal *term)
}
mtx_unlock(&term->render.workers.lock);
+ key_binding_unref(term->wl->key_binding_manager, term->conf);
+
urls_reset(term);
free(term->vt.osc.data);