Sfoglia il codice sorgente

Fixed bug 3996 - Corrupted or over-released critical section on SDL_Quit (SDL_event_watchers_lock)

Andrew

This likely comes down to an additional 'unlock' being called before destroying it, without a matching 'lock'.
Sam Lantinga 7 anni fa
parent
commit
ca7297668a
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      src/events/SDL_events.c

+ 0 - 1
src/events/SDL_events.c

@@ -369,7 +369,6 @@ SDL_StopEventLoop(void)
     }
 
     if (SDL_event_watchers_lock) {
-        SDL_UnlockMutex(SDL_event_watchers_lock);
         SDL_DestroyMutex(SDL_event_watchers_lock);
         SDL_event_watchers_lock = NULL;
     }