diff --git a/PowerEditor/src/Parameters.h b/PowerEditor/src/Parameters.h index 03028df1..0325553f 100644 --- a/PowerEditor/src/Parameters.h +++ b/PowerEditor/src/Parameters.h @@ -1293,8 +1293,8 @@ class NppParameters final { public: static NppParameters& getInstance() { - static NppParameters instance; - return instance; + static NppParameters* instance = new NppParameters; + return *instance; }; static LangType getLangIDFromStr(const TCHAR *langName); static generic_string getLocPathFromStr(const generic_string & localizationCode); @@ -1658,6 +1658,7 @@ private: NppParameters(NppParameters&&) = delete; NppParameters& operator=(NppParameters&&) = delete; + TiXmlDocument *_pXmlDoc = nullptr; TiXmlDocument *_pXmlUserDoc = nullptr; TiXmlDocument *_pXmlUserStylerDoc = nullptr;