forked from qt-creator/qt-creator
QmlProfiler: Initialize and reset QmlProfilerPlugin::m_profilerTool
Change-Id: I6efa81c1c89610f50f0057fccce438176bff3120 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user