Clear the queue active flag when we shutdown, so we don't have a mutex error trying to read the queue.

This commit is contained in:
Sam Lantinga 2012-09-28 03:54:39 -07:00
parent c328979f60
commit 29b5947d0c

View file

@ -86,6 +86,8 @@ SDL_StopEventLoop(void)
{
int i;
SDL_EventQ.active = 0;
if (SDL_EventQ.lock) {
SDL_DestroyMutex(SDL_EventQ.lock);
SDL_EventQ.lock = NULL;