mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- call SDL_Quit() from main() instead of atexit()
This should help with crash reporting during SDL shutdown
This commit is contained in:
parent
3a54b10697
commit
08a66abde9
1 changed files with 6 additions and 2 deletions
|
@ -173,7 +173,6 @@ int main (int argc, char **argv)
|
|||
fprintf (stderr, "Could not initialize SDL:\n%s\n", SDL_GetError());
|
||||
return -1;
|
||||
}
|
||||
atexit (SDL_Quit); // This one should NOT be in the engine's list of exit handlers!
|
||||
|
||||
printf("\n");
|
||||
|
||||
|
@ -195,5 +194,10 @@ int main (int argc, char **argv)
|
|||
}
|
||||
|
||||
I_StartupJoysticks();
|
||||
return D_DoomMain ();
|
||||
|
||||
const int result = D_DoomMain();
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue