curses status cleanup

Stop the last of the memory leaks occuring during basic usage.
This commit is contained in:
PatR
2019-02-09 15:30:53 -08:00
parent d4d7901eff
commit d80fd8a014
4 changed files with 7 additions and 8 deletions
+1 -3
View File
@@ -313,9 +313,7 @@ curses_del_nhwin(winid wid)
return;
}
if (wid == MESSAGE_WIN) {
curses_teardown_messages();
} else if (wid == STATUS_WIN) {
curses_teardown_status();
curses_teardown_messages();
}
nhwins[wid].curwin = NULL;
nhwins[wid].nhwin = -1;