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()
{
delete m_profilerTool;
m_profilerTool = nullptr;
// Save settings.
// Disconnect from signals that are not needed during shutdown