src/events/SDL_events.c
branchgsoc2009_unit_tests
changeset 3726 ffe22900a50a
parent 3072 9da8f57ab92c
child 3268 82ce350be859
equal deleted inserted replaced
3725:6eca2af6a86b 3726:ffe22900a50a
   194         SDL_WaitThread(SDL_EventThread, NULL);
   194         SDL_WaitThread(SDL_EventThread, NULL);
   195         SDL_EventThread = NULL;
   195         SDL_EventThread = NULL;
   196         SDL_DestroyMutex(SDL_EventLock.lock);
   196         SDL_DestroyMutex(SDL_EventLock.lock);
   197     }
   197     }
   198 #ifndef IPOD
   198 #ifndef IPOD
   199     SDL_DestroyMutex(SDL_EventQ.lock);
   199     if (SDL_EventQ.lock) {
       
   200         SDL_DestroyMutex(SDL_EventQ.lock);
       
   201         SDL_EventQ.lock = NULL;
       
   202     }
   200 #endif
   203 #endif
   201 }
   204 }
   202 
   205 
   203 Uint32
   206 Uint32
   204 SDL_EventThreadID(void)
   207 SDL_EventThreadID(void)