OSDN Git Service

Moved plugin deletion code from shutdown() to destructor
authorLasse Holmstedt <lasse.holmstedt@nokia.com>
Wed, 28 Apr 2010 09:18:19 +0000 (11:18 +0200)
committerLasse Holmstedt <lasse.holmstedt@nokia.com>
Wed, 28 Apr 2010 09:19:08 +0000 (11:19 +0200)
Task-number: QTCREATORBUG-1288

src/plugins/qmlinspector/qmlinspectorplugin.cpp

index 5642682..29b993f 100644 (file)
@@ -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)