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:
nhmall
2026-05-14 23:57:25 -04:00
parent 5edb093e14
commit accb14b797
3 changed files with 19 additions and 7 deletions
+7
View File
@@ -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);
}