diff --git a/src/posix/sdl/i_main.cpp b/src/posix/sdl/i_main.cpp index 4ee534fd4..c690a7576 100644 --- a/src/posix/sdl/i_main.cpp +++ b/src/posix/sdl/i_main.cpp @@ -180,7 +180,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");