diff src/events/SDL_events.c @ 3611:57823d017f02

Merged r4121:4122 from branches/SDL-1.2: more double-free fixes.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 06 Jan 2010 07:34:20 +0000
parents 0d1b16ee0bca
children f7b03b6838cb
line wrap: on
line diff
--- a/src/events/SDL_events.c	Wed Jan 06 07:26:49 2010 +0000
+++ b/src/events/SDL_events.c	Wed Jan 06 07:34:20 2010 +0000
@@ -176,6 +176,7 @@
         SDL_WaitThread(SDL_EventThread, NULL);
         SDL_EventThread = NULL;
         SDL_DestroyMutex(SDL_EventLock.lock);
+        SDL_EventLock.lock = NULL;
     }
     if (SDL_EventQ.lock) {
         SDL_DestroyMutex(SDL_EventQ.lock);