From ec3b78e52d95752160231bc8eb5ad9647e20b3b9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 16 Sep 2011 02:17:51 -0700 Subject: Fix a mutex leak in a capture open error path --- Alc/ALc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Alc/ALc.c') 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; -- cgit v1.2.3