1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-31 20:21:49 +00:00

ao/wasapi: fix leaked deviceID

This commit is contained in:
Jonathan Yong 2014-11-08 06:46:58 -08:00 committed by Kevin Mitchell
parent c372856c11
commit 227f0e3f39

View File

@ -826,6 +826,7 @@ exit_label:
SAFE_RELEASE(pTempDevice, IMMDevice_Release(pTempDevice));
SAFE_RELEASE(pDevices, IMMDeviceCollection_Release(pDevices));
SAFE_RELEASE(pEnumerator, IMMDeviceEnumerator_Release(pEnumerator));
CoTaskMemFree(deviceID);
return hr;
}