From 9864d91975e42f250a2970298f72ac11709c58ce Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 4 May 2020 20:46:27 +0200 Subject: term: set 'is_shutting_down' before calling term_destroy() on error --- terminal.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.3