- put SDL_Quit into the atexit queue instead of atterm

System exit procedures should not go in there.
This commit is contained in:
Christoph Oelckers 2019-10-01 00:44:28 +02:00
parent 12440bbca3
commit eae593b1f5

View file

@ -179,7 +179,7 @@ int main (int argc, char **argv)
fprintf (stderr, "Could not initialize SDL:\n%s\n", SDL_GetError()); fprintf (stderr, "Could not initialize SDL:\n%s\n", SDL_GetError());
return -1; return -1;
} }
atterm (SDL_Quit); atexit (SDL_Quit); // This one should NOT be in the engine's list of exit handlers!
printf("\n"); printf("\n");