# HG changeset patch # User Eric Wing # Date 1301362094 25200 # Node ID a554e41eeb13d3cd7bb7d9cddd0ce9e11519c104 # Parent 1c23805d5ce994e7f137a9afbd025ffce4c7a35e Bug fix to move g_inInterruption cleanup outside of #ifdef THREADS block. diff -r 1c23805d5ce9 -r a554e41eeb13 ALmixer.c --- a/ALmixer.c Mon Mar 28 16:05:25 2011 -0700 +++ b/ALmixer.c Mon Mar 28 18:28:14 2011 -0700 @@ -7488,10 +7488,10 @@ /* This is safe to call with NULL thread, so we don't need to do anything special for interruptions. */ SDL_WaitThread(Stream_Thread_global, NULL); Stream_Thread_global = NULL; - g_inInterruption = 0; SDL_DestroyMutex(s_simpleLock); #endif + g_inInterruption = 0; /* Delete all the OpenAL sources */ for(i=0; i