[Commits] SDL: Fixed bug 3996 - Corrupted or over-released critical sectio...

libsdl.org revision control commits-owner at libsdl.org
Tue Dec 12 16:10:24 PST 2017


details:   https://hg.libsdl.org/SDL/rev/f0aad4dbf696
changeset: 11769:f0aad4dbf696
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Dec 12 16:10:20 2017 -0800
description:
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'.

diffstat:

 src/events/SDL_events.c |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 0f2fb9ec6ad6 -r f0aad4dbf696 src/events/SDL_events.c
--- a/src/events/SDL_events.c	Tue Dec 12 12:52:23 2017 -0800
+++ b/src/events/SDL_events.c	Tue Dec 12 16:10:20 2017 -0800
@@ -369,7 +369,6 @@
     }
 
     if (SDL_event_watchers_lock) {
-        SDL_UnlockMutex(SDL_event_watchers_lock);
         SDL_DestroyMutex(SDL_event_watchers_lock);
         SDL_event_watchers_lock = NULL;
     }


More information about the commits mailing list