term: set 'is_shutting_down' before calling term_destroy() on error

This commit is contained in:
Daniel Eklöf 2020-05-04 20:46:27 +02:00
parent af9e5aef2b
commit 9864d91975
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;