mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21: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");
|
Con_Printf("IN_Shutdown\n");
|
||||||
mouse_avail = 0;
|
mouse_avail = 0;
|
||||||
XAutoRepeatOn(x_disp);
|
if (x_disp) {
|
||||||
if (nullcursor != None) {
|
XAutoRepeatOn(x_disp);
|
||||||
XFreeCursor(x_disp, nullcursor);
|
if (nullcursor != None) {
|
||||||
nullcursor = None;
|
XFreeCursor(x_disp, nullcursor);
|
||||||
}
|
nullcursor = None;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAS_DGA
|
#ifdef HAS_DGA
|
||||||
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
|
XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), 0);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
x11_close_display();
|
x11_close_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue