Mercurial > sdl-ios-xcode
diff src/events/SDL_events.c @ 3259:22ac66da0765
Merged Edgar's code changes from Google Summer of Code 2009
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 07 Sep 2009 05:06:34 +0000 |
parents | 9da8f57ab92c |
children | 82ce350be859 |
line wrap: on
line diff
--- a/src/events/SDL_events.c Mon Sep 07 05:01:01 2009 +0000 +++ b/src/events/SDL_events.c Mon Sep 07 05:06:34 2009 +0000 @@ -196,7 +196,10 @@ SDL_DestroyMutex(SDL_EventLock.lock); } #ifndef IPOD - SDL_DestroyMutex(SDL_EventQ.lock); + if (SDL_EventQ.lock) { + SDL_DestroyMutex(SDL_EventQ.lock); + SDL_EventQ.lock = NULL; + } #endif }