From a3aa879827334441e74ba426e8d92bc51c078420 Mon Sep 17 00:00:00 2001 From: Lasse Holmstedt <lasse.holmstedt@nokia.com> Date: Wed, 28 Apr 2010 11:18:19 +0200 Subject: [PATCH] Moved plugin deletion code from shutdown() to destructor Task-number: QTCREATORBUG-1288 --- src/plugins/qmlinspector/qmlinspectorplugin.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlinspector/qmlinspectorplugin.cpp b/src/plugins/qmlinspector/qmlinspectorplugin.cpp index 5642682623b..29b993fa164 100644 --- a/src/plugins/qmlinspector/qmlinspectorplugin.cpp +++ b/src/plugins/qmlinspector/qmlinspectorplugin.cpp @@ -79,13 +79,14 @@ QmlInspectorPlugin::QmlInspectorPlugin() QmlInspectorPlugin::~QmlInspectorPlugin() { + removeObject(m_inspector); + delete m_inspector; + m_inspector = 0; } void QmlInspectorPlugin::shutdown() { - removeObject(m_inspector); - delete m_inspector; - m_inspector = 0; + } bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *errorString) -- GitLab