From ab577960510dbd84903bc617cee11cfaae034661 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 25 May 2023 16:06:41 +0200 Subject: [PATCH] Do not leak strings --- plugins/systemvolume/systemvolumeplugin-win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/systemvolume/systemvolumeplugin-win.cpp b/plugins/systemvolume/systemvolumeplugin-win.cpp index 1de49c891..03f13ed9a 100644 --- a/plugins/systemvolume/systemvolumeplugin-win.cpp +++ b/plugins/systemvolume/systemvolumeplugin-win.cpp @@ -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