foxygit / doom Log in
commit 3dce9e52b1eae4b54e355115eb57e76a8cf7408d
Author:     Brad Harding <brad@doomretro.com>
AuthorDate: Mon Jun 2 18:20:15 2014 +1000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri Oct 17 00:13:08 2014 -0400

    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);
 }