Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix double free when destroying event thread for a second time.
  • Loading branch information
bobbens committed Jul 11, 2009
1 parent 8f8d459 commit c09893dd7cf1aa002a418c9023e42d889bb85220
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/events/SDL_events.c
@@ -196,7 +196,10 @@ SDL_StopEventThread(void)
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
}

0 comments on commit c09893d

Please sign in to comment.