diff --git a/plugins/SlewDistortion/SlewDistortionControlDialog.h b/plugins/SlewDistortion/SlewDistortionControlDialog.h index c7aec9179..836388815 100755 --- a/plugins/SlewDistortion/SlewDistortionControlDialog.h +++ b/plugins/SlewDistortion/SlewDistortionControlDialog.h @@ -68,8 +68,8 @@ class SlewDistortionHelpView : public QTextEdit public: static SlewDistortionHelpView* getInstance() { - static SlewDistortionHelpView instance; - return &instance; + static SlewDistortionHelpView* instance = new SlewDistortionHelpView; + return instance; } private: diff --git a/plugins/Xpressive/Xpressive.h b/plugins/Xpressive/Xpressive.h index a50a3b4f2..d90025b40 100644 --- a/plugins/Xpressive/Xpressive.h +++ b/plugins/Xpressive/Xpressive.h @@ -214,8 +214,8 @@ class XpressiveHelpView: public QTextEdit public: static XpressiveHelpView* getInstance() { - static XpressiveHelpView instance; - return &instance; + static XpressiveHelpView* instance = new XpressiveHelpView; + return instance; } static void finalize() {