mmdevapi: Fix returned format leak (Valgrind).
This commit is contained in:
parent
8095210d2c
commit
f4096a30ea
|
@ -485,6 +485,7 @@ static HRESULT set_format(MMDevice *dev)
|
|||
&PKEY_AudioEngine_DeviceFormat, &pv);
|
||||
MMDevice_SetPropValue(&dev->devguid, dev->flow,
|
||||
&PKEY_AudioEngine_OEMFormat, &pv);
|
||||
CoTaskMemFree(fmt);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue