mmdevapi: Fix returned format leak (Valgrind).

This commit is contained in:
Nikolay Sivov 2015-04-11 10:46:32 +03:00 committed by Alexandre Julliard
parent 8095210d2c
commit f4096a30ea
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}