Prechádzať zdrojové kódy

win-wasapi: Fix PROPVARIANT variable has not be freed

Chensiyy 2 rokov pred
rodič
commit
54568cb3bd
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      plugins/win-wasapi/enum-wasapi.cpp

+ 1 - 0
plugins/win-wasapi/enum-wasapi.cpp

@@ -30,6 +30,7 @@ string GetDeviceName(IMMDevice *device)
 			device_name.resize(size);
 			os_wcs_to_utf8(nameVar.pwszVal, len, &device_name[0],
 				       size);
+			PropVariantClear(&nameVar);
 		}
 	}