mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[MMIXER] Fix memory leak in MMixerGetDeviceNameWithComponentId. CORE-16611
This commit is contained in:
parent
e4e86c32e7
commit
756aa270b1
1 changed files with 1 additions and 0 deletions
|
@ -838,6 +838,7 @@ MMixerGetDeviceNameWithComponentId(
|
||||||
if (Status == MM_STATUS_SUCCESS)
|
if (Status == MM_STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
MixerContext->Copy(OutDeviceName, DeviceName, min(ResultLength, (MAXPNAMELEN-1)*2));
|
MixerContext->Copy(OutDeviceName, DeviceName, min(ResultLength, (MAXPNAMELEN-1)*2));
|
||||||
|
MixerContext->Free(DeviceName);
|
||||||
}
|
}
|
||||||
|
|
||||||
MixerContext->CloseKey(hGuidKey);
|
MixerContext->CloseKey(hGuidKey);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue