From aa73de952b7d09c81a4cdf950f9a35c974840109 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Tue, 8 Feb 2022 21:55:35 +0100 Subject: [PATCH] UI: Fix uninitialized memory access in OBSPropertiesView Bug introduced in b0528e0cf7c67d4ae17967bd50fbebb919006f4f. Closes https://github.com/obsproject/obs-studio/issues/5934. --- UI/properties-view.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/properties-view.hpp b/UI/properties-view.hpp index 0e460094d..2ee80ded9 100644 --- a/UI/properties-view.hpp +++ b/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;