소스 검색

UI: Fix uninitialized memory access in OBSPropertiesView

Bug introduced in b0528e0cf7c67d4ae17967bd50fbebb919006f4f. Closes
https://github.com/obsproject/obs-studio/issues/5934.
Richard Stanway 4 년 전
부모
커밋
aa73de952b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      UI/properties-view.hpp

+ 1 - 1
UI/properties-view.hpp

@@ -98,7 +98,7 @@ private:
 	properties_t properties;
 	properties_t properties;
 	OBSData settings;
 	OBSData settings;
 	OBSWeakObjectAutoRelease weakObj;
 	OBSWeakObjectAutoRelease weakObj;
-	void *rawObj;
+	void *rawObj = nullptr;
 	std::string type;
 	std::string type;
 	PropertiesReloadCallback reloadCallback;
 	PropertiesReloadCallback reloadCallback;
 	PropertiesUpdateCallback callback = nullptr;
 	PropertiesUpdateCallback callback = nullptr;