Skip to content

Commit

Permalink
Fixed bug 3996 - Corrupted or over-released critical section on SDL_Q…
Browse files Browse the repository at this point in the history
…uit (SDL_event_watchers_lock)

Andrew

This likely comes down to an additional 'unlock' being called before destroying it, without a matching 'lock'.
  • Loading branch information
slouken committed Dec 13, 2017
1 parent 2afc0b7 commit ca72976
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/events/SDL_events.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit ca72976

Please sign in to comment.