From 3a0331d7471e17b10c915df65f536ed33b82365c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= <lbphacker@gmail.com> Date: Wed, 6 Jan 2021 15:46:39 +0100 Subject: [PATCH] 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. --- src/PowderToyFontEditor.cpp | 1 + src/PowderToySDL.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/PowderToyFontEditor.cpp b/src/PowderToyFontEditor.cpp index 56aff650b..c557e20c1 100644 --- a/src/PowderToyFontEditor.cpp +++ b/src/PowderToyFontEditor.cpp @@ -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; } diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 997ba730e..55abadea3 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -963,5 +963,6 @@ int main(int argc, char * argv[]) delete gameController; delete ui::Engine::Ref().g; Client::Ref().Shutdown(); + SDL_Quit(); return 0; }