fix a core dump on premature exit

This commit is contained in:
Bill Currie 2000-05-24 04:45:35 +00:00
parent 7f193522f3
commit 1d4f3155b8

View file

@ -421,6 +421,7 @@ IN_Shutdown(void)
{
Con_Printf("IN_Shutdown\n");
mouse_avail = 0;
if (x_disp) {
XAutoRepeatOn(x_disp);
if (nullcursor != None) {
XFreeCursor(x_disp, nullcursor);
@ -430,7 +431,7 @@ IN_Shutdown(void)
#ifdef HAS_DGA
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
#endif
}
x11_close_display();
}