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:
parent
c372856c11
commit
227f0e3f39
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user