src/SDL.c
changeset 7810 ab1b92bf0327
parent 7592 063a932a264f
child 7828 1451063c8ecd
     1.1 --- a/src/SDL.c	Sun Oct 13 17:15:43 2013 -0300
     1.2 +++ b/src/SDL.c	Sun Oct 13 19:48:45 2013 -0700
     1.3 @@ -65,6 +65,8 @@
     1.4  SDL_PrivateSubsystemRefCountDecr(Uint32 subsystem)
     1.5  {
     1.6      int subsystem_index = SDL_MostSignificantBitIndex32(subsystem);
     1.7 +    /* If this assert triggers there is a mismatch between init and quit calls */
     1.8 +    SDL_assert(SDL_SubsystemRefCount[subsystem_index] > 0);
     1.9      if (SDL_SubsystemRefCount[subsystem_index] > 0) {
    1.10          --SDL_SubsystemRefCount[subsystem_index];
    1.11      }