Commit a3aa8798 authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

Moved plugin deletion code from shutdown() to destructor

Task-number: QTCREATORBUG-1288
parent e37ca5c2
......@@ -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)
......
Supports Markdown
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