]> granicus.if.org Git - nethack/commitdiff
crash on hangup following
authorcohrs <cohrs>
Mon, 27 Oct 2003 00:59:54 +0000 (00:59 +0000)
committercohrs <cohrs>
Mon, 27 Oct 2003 00:59:54 +0000 (00:59 +0000)
restore the exit_nhwindows call, but in the right place.  without this,
the window inteface doesn't get a chance o shut down.

src/cmd.c

index 1af068e7fa5d94abfc547a5fc75c62e2538c1a59..41f08652b48d4c9887d60febad1f603ff55706c3 100644 (file)
--- 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);
 }