Moved plugin deletion code from shutdown() to destructor

Task-number: QTCREATORBUG-1288
This commit is contained in:
Lasse Holmstedt
2010-04-28 11:18:19 +02:00
parent e37ca5c234
commit a3aa879827

View 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)