diff options
author | hjk <hjk@qt.io> | 2018-02-06 13:33:52 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2018-02-06 13:01:58 +0000 |
commit | e20152017c534b64eab6cc7da2192ef2288f95f9 (patch) | |
tree | 0c1c6201fa982a2f4b5c1b15cd2b776c0e9ecd38 /src/plugins/welcome | |
parent | 713b8636ea740502597b79b1a74382d1b3a70ab6 (diff) |
Welcome: Remove one unneeded usage of global object pool
Change-Id: Iaf94a26eb49c49648ac89f7e463b8849e86cba9e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r-- | src/plugins/welcome/welcomeplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index 5df458f02d0..9487e7a407f 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -127,12 +127,11 @@ class WelcomePlugin : public ExtensionSystem::IPlugin Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Welcome.json") public: - WelcomePlugin() {} + ~WelcomePlugin() final { delete m_welcomeMode; } bool initialize(const QStringList &, QString *) final { m_welcomeMode = new WelcomeMode; - addAutoReleasedObject(m_welcomeMode); return true; } |