win-wasapi: Fix PROPVARIANT variable has not be freed

This commit is contained in:
Chensiyy
2023-07-13 13:37:24 +08:00
committed by Lain
parent 32713eb95e
commit 54568cb3bd

View File

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