summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Harding2014-06-02 18:20:15 +1000
committerSimon Howard2014-10-17 00:13:08 -0400
commit3dce9e52b1eae4b54e355115eb57e76a8cf7408d (patch)
tree2dfad8dc4f4755eb2c6a0b98d2eaa25445fda3e2
parentd5b6bb70919f91f94b035b12ff706ef9ab08689c (diff)
downloadchocolate-doom-3dce9e52b1eae4b54e355115eb57e76a8cf7408d.tar.gz
chocolate-doom-3dce9e52b1eae4b54e355115eb57e76a8cf7408d.tar.bz2
chocolate-doom-3dce9e52b1eae4b54e355115eb57e76a8cf7408d.zip
Call SDL_Quit() on exit
Hopefully this may fix issue where exe very occasionally continues to run in background after exit. See chocolate-doom/chocolate-doom#408. Conflicts: src/i_system.c
-rw-r--r--src/i_system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i_system.c b/src/i_system.c
index 537cd667..c783d491 100644
--- a/src/i_system.c
+++ b/src/i_system.c
@@ -251,6 +251,8 @@ void I_Quit (void)
entry = entry->next;
}
+ SDL_Quit();
+
exit(0);
}
@@ -444,6 +446,8 @@ void I_Error (char *error, ...)
// abort();
+ SDL_Quit();
+
exit(-1);
}