free up some console alloc()'d memory under curses
tty takes care of this, but it wasn't being done under curses
This commit is contained in:
@@ -526,6 +526,13 @@ nethack_exit(int code)
|
||||
genl_status_finish();
|
||||
#ifdef MSWIN_GRAPHICS
|
||||
free_winmain_stuff();
|
||||
#endif
|
||||
#ifdef WIN32CON
|
||||
#ifdef CURSES_GRAPHICS
|
||||
if (WINDOWPORT(curses)) {
|
||||
console_exit();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
exit(code);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user