0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

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); device_name.resize(size);
os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0], os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0],
size); size);
PropVariantClear(&nameVar);
} }
} }