Skip to content
Permalink
Browse files

- put SDL_Quit into the atexit queue instead of atterm

System exit procedures should not go in there.
  • Loading branch information...
coelckers committed Sep 30, 2019
1 parent 12440bb commit eae593b1f58dd0335ac0a1b8de5d4a4bb82c4909
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/posix/sdl/i_main.cpp
@@ -179,7 +179,7 @@ int main (int argc, char **argv)
fprintf (stderr, "Could not initialize SDL:\n%s\n", SDL_GetError());
return -1;
}
atterm (SDL_Quit);
atexit (SDL_Quit); // This one should NOT be in the engine's list of exit handlers!

printf("\n");

0 comments on commit eae593b

Please sign in to comment.
You can’t perform that action at this time.