Add SDL_Quit calls back in

These got lost in the migration to Meson; they used to be called
with atexit, but this caused more problems than it should have.
Anyway, it's fine to call these only when we're exiting normally,
since otherwise we have bigger problems than not quitting SDL.
This commit is contained in:
Tamás Bálint Misius 2021-01-06 15:46:39 +01:00
parent 9f47e6c028
commit 3a0331d747
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
2 changed files with 2 additions and 0 deletions

View File

@ -471,5 +471,6 @@ int main(int argc, char * argv[])
ui::Engine::Ref().CloseWindow();
delete gameController;
delete ui::Engine::Ref().g;
SDL_Quit();
return 0;
}

View File

@ -963,5 +963,6 @@ int main(int argc, char * argv[])
delete gameController;
delete ui::Engine::Ref().g;
Client::Ref().Shutdown();
SDL_Quit();
return 0;
}