From d9cb2baf4a99e691d63470f901cfb5c1fbb3e482 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 11 Sep 2011 09:29:24 -0700 Subject: [PATCH] Don't increment the context reference count when locked --- Alc/ALc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index a6b5707e..cbbacaa2 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1556,14 +1556,12 @@ static void ReleaseThreadCtx(void *ptr) ALCvoid LockContext(ALCcontext *context) { - ALCcontext_IncRef(context); EnterCriticalSection(&context->Device->Mutex); } ALCvoid UnlockContext(ALCcontext *context) { LeaveCriticalSection(&context->Device->Mutex); - ALCcontext_DecRef(context); } /* GetContextRef