Do not leak strings

This commit is contained in:
Albert Vaca Cintora 2023-05-25 16:06:41 +02:00
parent 89dc4a8b76
commit ab57796051

View file

@ -293,12 +293,12 @@ bool SystemvolumePlugin::sendSinkList()
deviceProperties->GetValue(PKEY_Device_FriendlyName, &deviceProperty);
name = QString::fromWCharArray(deviceProperty.pwszVal);
// PropVariantClear(&deviceProperty);
PropVariantClear(&deviceProperty);
#ifndef __MINGW32__
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
desc = QString::fromWCharArray(deviceProperty.pwszVal);
// PropVariantClear(&deviceProperty);
PropVariantClear(&deviceProperty);
#else
desc = name;
#endif