Browse Source

UI: Fix uninitialized memory access in OBSPropertiesView

Bug introduced in b0528e0cf7c67d4ae17967bd50fbebb919006f4f. Closes
https://github.com/obsproject/obs-studio/issues/5934.
Richard Stanway 3 years ago
parent
commit
aa73de952b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UI/properties-view.hpp

+ 1 - 1
UI/properties-view.hpp

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