diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 1e13b6748..90b8d71bd 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1205,8 +1205,8 @@ bool OBSApp::SetTheme(std::string name, std::string path) path = GetTheme(name, path); if (path.empty()) return false; - - themeMeta = ParseThemeMeta(path.c_str()); + unique_ptr themeMeta; + themeMeta.reset(ParseThemeMeta(path.c_str())); string parentPath; if (themeMeta && !themeMeta->parent.empty()) { diff --git a/UI/obs-app.hpp b/UI/obs-app.hpp index df75bec92..c58771806 100644 --- a/UI/obs-app.hpp +++ b/UI/obs-app.hpp @@ -80,7 +80,7 @@ class OBSApp : public QApplication { private: std::string locale; std::string theme; - OBSThemeMeta *themeMeta = nullptr; + bool themeDarkMode = true; ConfigFile globalConfig; TextLookup textLookup;