Commit ade13fd741061cf1b3cce3b54e01fc887ff6c309

Sam Lantinga 2013-10-20T10:39:26

It's okay to quit things more than once.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL.c b/src/SDL.c
index 619a0c1..0f6de9f 100644
--- a/src/SDL.c
+++ b/src/SDL.c
@@ -69,8 +69,6 @@ static void
 SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
 {
     int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
-    /* If this assert triggers there is a mismatch between init and quit calls */
-    SDL_assert(SDL_SubsystemRefCount[subsystem_index] > 0);
     if (SDL_SubsystemRefCount[subsystem_index] > 0) {
         --SDL_SubsystemRefCount[subsystem_index];
     }