diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-02-01 09:17:56 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-02-01 09:23:14 +0000 |
commit | 56fbeb8a68bd3cf3bcbd3a3c3fdd0a5b66f90e3e (patch) | |
tree | f0c75ba7f929d522a3d3d98e5699671fc6a8adb0 /src/plugins/autotest/autotestplugin.cpp | |
parent | e984e5eacbad040f062ab5439203bd95a5b3d497 (diff) |
AutoTest: Avoid global object pool
Instead of adding internal objects to the global
object pool keep them to handle their destruction.
Change-Id: Ie6217b2a820fbfa6f088fd9349225f5f8488f593
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest/autotestplugin.cpp')
-rw-r--r-- | src/plugins/autotest/autotestplugin.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp index eb1079e4b5..7eaef33f92 100644 --- a/src/plugins/autotest/autotestplugin.cpp +++ b/src/plugins/autotest/autotestplugin.cpp @@ -81,6 +81,9 @@ AutotestPlugin::AutotestPlugin() AutotestPlugin::~AutotestPlugin() { + delete m_navigationWidgetFactory; + delete m_resultsPane; + delete m_testSettingPage; delete m_frameworkManager; } @@ -154,9 +157,9 @@ bool AutotestPlugin::initialize(const QStringList &arguments, QString *errorStri m_frameworkManager->registerTestFramework(new GTestFramework); m_frameworkManager->synchronizeSettings(ICore::settings()); - addAutoReleasedObject(new TestSettingsPage(m_settings)); - addAutoReleasedObject(new TestNavigationWidgetFactory); - addAutoReleasedObject(TestResultsPane::instance()); + m_testSettingPage = new TestSettingsPage(m_settings); + m_navigationWidgetFactory = new TestNavigationWidgetFactory; + m_resultsPane = TestResultsPane::instance(); m_frameworkManager->activateFrameworksFromSettings(m_settings); TestTreeModel::instance()->syncTestFrameworks(); |