Cleaning up memory allocated by ncurses pads

This commit is contained in:
James Booth
2012-07-31 23:01:15 +01:00
parent f7a542f488
commit 0a42be57a3
6 changed files with 20 additions and 1 deletions

View File

@@ -125,6 +125,13 @@ gui_refresh(void)
void
gui_close(void)
{
int i;
for (i = 0; i < NUM_WINS; i++) {
if (_wins[i].win != NULL) {
delwin(_wins[i].win);
}
}
endwin();
}