diff options
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -657,9 +657,11 @@ ALCAPI ALCboolean ALCAPIENTRY alcCaptureCloseDevice(ALCdevice *pDevice) ProcessContext(NULL); + ALCdevice_CloseCapture(pDevice); + free(pDevice->szDeviceName); + pDevice->szDeviceName = NULL; - ALCdevice_CloseCapture(pDevice); free(pDevice); bReturn = ALC_TRUE; |