QmlProfiler: Initialize and reset QmlProfilerPlugin::m_profilerTool

Change-Id: I6efa81c1c89610f50f0057fccce438176bff3120
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Robert Loehning
2017-08-16 12:10:28 +02:00
parent c438eda6cd
commit 1acc482130
2 changed files with 2 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ void QmlProfilerPlugin::extensionsInitialized()
ExtensionSystem::IPlugin::ShutdownFlag QmlProfilerPlugin::aboutToShutdown() ExtensionSystem::IPlugin::ShutdownFlag QmlProfilerPlugin::aboutToShutdown()
{ {
delete m_profilerTool; delete m_profilerTool;
m_profilerTool = nullptr;
// Save settings. // Save settings.
// Disconnect from signals that are not needed during shutdown // Disconnect from signals that are not needed during shutdown

View File

@@ -51,7 +51,7 @@ public:
QList<QObject *> createTestObjects() const override; QList<QObject *> createTestObjects() const override;
private: private:
QmlProfilerTool *m_profilerTool; QmlProfilerTool *m_profilerTool = nullptr;
}; };
} // namespace Internal } // namespace Internal