From 3dce9e52b1eae4b54e355115eb57e76a8cf7408d Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Mon, 2 Jun 2014 18:20:15 +1000 Subject: 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 --- src/i_system.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- cgit v1.2.3