From: cohrs Date: Mon, 27 Oct 2003 00:59:54 +0000 (+0000) Subject: crash on hangup following X-Git-Tag: MOVE2GIT~1627 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05f2aa40cee86425a65944bec4f393cd32136e72;p=nethack crash on hangup following restore the exit_nhwindows call, but in the right place. without this, the window inteface doesn't get a chance o shut down. --- diff --git a/src/cmd.c b/src/cmd.c index 1af068e7f..41f08652b 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2398,6 +2398,7 @@ end_of_input() #endif if (program_state.something_worth_saving) (void) dosave0(); #endif + exit_nhwindows((char *)0); clearlocks(); terminate(EXIT_SUCCESS); }