Commit 1acc4821 authored by Robert Loehning's avatar Robert Loehning

QmlProfiler: Initialize and reset QmlProfilerPlugin::m_profilerTool

Change-Id: I6efa81c1c89610f50f0057fccce438176bff3120
Reviewed-by: Ulf Hermann's avatarUlf Hermann <ulf.hermann@qt.io>
parent c438eda6
......@@ -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
......
......@@ -51,7 +51,7 @@ public:
QList<QObject *> createTestObjects() const override;
private:
QmlProfilerTool *m_profilerTool;
QmlProfilerTool *m_profilerTool = nullptr;
};
} // namespace Internal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment