aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/ALc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e4842eb5..dde5ce4c 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1639,6 +1639,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName,
device->Flags |= DEVICE_CHANNELS_REQUEST;
if(DecomposeDevFormat(format, &device->FmtChans, &device->FmtType) == AL_FALSE)
{
+ DeleteCriticalSection(&device->Mutex);
free(device);
alcSetError(NULL, ALC_INVALID_ENUM);
return NULL;