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:
parent
32713eb95e
commit
54568cb3bd
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user