Free the memory allocated by setupterm()

This commit is contained in:
David Maciejak 2019-04-29 09:55:57 +08:00 committed by GitHub
commit 2bcd722941
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2397,6 +2397,9 @@ int main(int argc, char *argv[]) {
if (!setupterm(NULL, 1, NULL) && (tigetnum("colors") <= 0)) {
colored_output = 0;
}
if (cur_term) {
del_curterm(cur_term);
}
}
#else
//don't want border line effect so disabling color output