aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-04 18:46:27 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-04 18:46:27 +0000
commit9864d91975e42f250a2970298f72ac11709c58ce (patch)
tree7c9441dc5a387b076570dcb27b5c6c82980b99f8
parentcsi: ignore invalid parameters in 'CSI Ps <space> q' (diff)
term: set 'is_shutting_down' before calling term_destroy() on error
-rw-r--r--terminal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index c9775b52..35ad71c0 100644
--- a/terminal.c
+++ b/terminal.c
@@ -936,6 +936,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
return term;
err:
+ term->is_shutting_down = true;
term_destroy(term);
return NULL;