diff options
author | Brad Harding | 2014-06-02 18:20:15 +1000 |
---|---|---|
committer | Simon Howard | 2014-10-17 00:13:08 -0400 |
commit | 3dce9e52b1eae4b54e355115eb57e76a8cf7408d (patch) | |
tree | 2dfad8dc4f4755eb2c6a0b98d2eaa25445fda3e2 /src | |
parent | d5b6bb70919f91f94b035b12ff706ef9ab08689c (diff) | |
download | chocolate-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
Diffstat (limited to 'src')
-rw-r--r-- | src/i_system.c | 4 |
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); } |