mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-03-25 09:20:46 +00:00
fix a core dump on premature exit
This commit is contained in:
parent
7f193522f3
commit
1d4f3155b8
1 changed files with 9 additions and 8 deletions
|
@ -421,16 +421,17 @@ IN_Shutdown(void)
|
|||
{
|
||||
Con_Printf("IN_Shutdown\n");
|
||||
mouse_avail = 0;
|
||||
XAutoRepeatOn(x_disp);
|
||||
if (nullcursor != None) {
|
||||
XFreeCursor(x_disp, nullcursor);
|
||||
nullcursor = None;
|
||||
}
|
||||
|
||||
if (x_disp) {
|
||||
XAutoRepeatOn(x_disp);
|
||||
if (nullcursor != None) {
|
||||
XFreeCursor(x_disp, nullcursor);
|
||||
nullcursor = None;
|
||||
}
|
||||
|
||||
#ifdef HAS_DGA
|
||||
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
|
||||
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
|
||||
#endif
|
||||
|
||||
}
|
||||
x11_close_display();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue