src/events/SDL_events.c
changeset 3259 22ac66da0765
parent 3072 9da8f57ab92c
child 3268 82ce350be859
     1.1 --- a/src/events/SDL_events.c	Mon Sep 07 05:01:01 2009 +0000
     1.2 +++ b/src/events/SDL_events.c	Mon Sep 07 05:06:34 2009 +0000
     1.3 @@ -196,7 +196,10 @@
     1.4          SDL_DestroyMutex(SDL_EventLock.lock);
     1.5      }
     1.6  #ifndef IPOD
     1.7 -    SDL_DestroyMutex(SDL_EventQ.lock);
     1.8 +    if (SDL_EventQ.lock) {
     1.9 +        SDL_DestroyMutex(SDL_EventQ.lock);
    1.10 +        SDL_EventQ.lock = NULL;
    1.11 +    }
    1.12  #endif
    1.13  }
    1.14