Skip to content

Commit

Permalink
- put SDL_Quit into the atexit queue instead of atterm
Browse files Browse the repository at this point in the history
System exit procedures should not go in there.
  • Loading branch information
coelckers committed Sep 30, 2019
1 parent 12440bb commit eae593b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posix/sdl/i_main.cpp
Expand Up @@ -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");

Expand Down

0 comments on commit eae593b

Please sign in to comment.