mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
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'.
This commit is contained in:
parent
2afc0b7fa5
commit
ca7297668a
@ -369,7 +369,6 @@ SDL_StopEventLoop(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_event_watchers_lock) {
|
if (SDL_event_watchers_lock) {
|
||||||
SDL_UnlockMutex(SDL_event_watchers_lock);
|
|
||||||
SDL_DestroyMutex(SDL_event_watchers_lock);
|
SDL_DestroyMutex(SDL_event_watchers_lock);
|
||||||
SDL_event_watchers_lock = NULL;
|
SDL_event_watchers_lock = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user