delete all windows on free_view()

Avoid terminal corruption on exit
This commit is contained in:
Yorick Barbanneau 2021-10-22 08:49:10 +02:00
parent 283bd63877
commit 96499a06cb

View file

@ -238,10 +238,8 @@ int elocation_to_coord(e_location l){
}
void free_view(p_view v){
if(v->p_uttt->inception_level == 2){
delwin(v->w_uttt);
v->w_uttt = NULL;
}
delwin(v->w_ttt);
v->w_ttt = NULL;
v->w_uttt = NULL;