more curses memory

Message history now cleaned up at game end.  Status window cleanup is
not taking place because the core is suppressing it #if STATUS_HILITES.
This commit is contained in:
PatR
2019-02-08 16:51:33 -08:00
parent f3072cdb43
commit d4d7901eff
5 changed files with 75 additions and 130 deletions

View File

@@ -57,6 +57,20 @@ curses_status_init()
genl_status_init();
}
void
curses_teardown_status()
{
#ifdef STATUS_HILITES
int i;
for (i = 0; i < MAXBLSTATS; ++i) {
free(status_vals_long[i]);
status_vals_long[i] = (char *) 0;
}
#endif /* STATUS_HILITES */
return;
}
/*
* *_status_update()
* -- update the value of a status field.