shithub: choc

Download patch

ref: 3dce9e52b1eae4b54e355115eb57e76a8cf7408d
parent: d5b6bb70919f91f94b035b12ff706ef9ab08689c
author: Brad Harding <brad@doomretro.com>
date: Mon Jun 2 14:20:15 EDT 2014

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

--- a/src/i_system.c
+++ b/src/i_system.c
@@ -251,6 +251,8 @@
         entry = entry->next;
     }
 
+    SDL_Quit();
+
     exit(0);
 }
 
@@ -443,6 +445,8 @@
 #endif
 
     // abort();
+
+    SDL_Quit();
 
     exit(-1);
 }