Procházet zdrojové kódy

win-wasapi: Fix PROPVARIANT variable has not be freed

Chensiyy před 2 roky
rodič
revize
54568cb3bd
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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);
 		}
 	}