diff options
author | Chris Robinson <[email protected]> | 2011-09-16 02:17:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-16 02:17:51 -0700 |
commit | ec3b78e52d95752160231bc8eb5ad9647e20b3b9 (patch) | |
tree | 4ba139e0189a921945acdb55694ea96fb53e1a3f /Alc/ALc.c | |
parent | 4e903c84cf69bf82afcc14a5717a3580beda63ce (diff) |
Fix a mutex leak in a capture open error path
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |