Do not leak strings
This commit is contained in:
parent
89dc4a8b76
commit
ab57796051
1 changed files with 2 additions and 2 deletions
|
@ -293,12 +293,12 @@ bool SystemvolumePlugin::sendSinkList()
|
||||||
|
|
||||||
deviceProperties->GetValue(PKEY_Device_FriendlyName, &deviceProperty);
|
deviceProperties->GetValue(PKEY_Device_FriendlyName, &deviceProperty);
|
||||||
name = QString::fromWCharArray(deviceProperty.pwszVal);
|
name = QString::fromWCharArray(deviceProperty.pwszVal);
|
||||||
// PropVariantClear(&deviceProperty);
|
PropVariantClear(&deviceProperty);
|
||||||
|
|
||||||
#ifndef __MINGW32__
|
#ifndef __MINGW32__
|
||||||
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
|
deviceProperties->GetValue(PKEY_Device_DeviceDesc, &deviceProperty);
|
||||||
desc = QString::fromWCharArray(deviceProperty.pwszVal);
|
desc = QString::fromWCharArray(deviceProperty.pwszVal);
|
||||||
// PropVariantClear(&deviceProperty);
|
PropVariantClear(&deviceProperty);
|
||||||
#else
|
#else
|
||||||
desc = name;
|
desc = name;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue