win-wasapi: Fix PROPVARIANT variable has not be freed
This commit is contained in:
parent
32713eb95e
commit
54568cb3bd
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ string GetDeviceName(IMMDevice *device)
|
|||
device_name.resize(size);
|
||||
os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0],
|
||||
size);
|
||||
PropVariantClear(&nameVar);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue