فهرست منبع

win-wasapi: Fix PROPVARIANT variable has not be freed

Chensiyy 2 سال پیش
والد
کامیت
54568cb3bd
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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);
 		}
 	}