forked from qt-creator/qt-creator
Moved plugin deletion code from shutdown() to destructor
Task-number: QTCREATORBUG-1288
This commit is contained in:
@@ -79,13 +79,14 @@ QmlInspectorPlugin::QmlInspectorPlugin()
|
|||||||
|
|
||||||
QmlInspectorPlugin::~QmlInspectorPlugin()
|
QmlInspectorPlugin::~QmlInspectorPlugin()
|
||||||
{
|
{
|
||||||
|
removeObject(m_inspector);
|
||||||
|
delete m_inspector;
|
||||||
|
m_inspector = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlInspectorPlugin::shutdown()
|
void QmlInspectorPlugin::shutdown()
|
||||||
{
|
{
|
||||||
removeObject(m_inspector);
|
|
||||||
delete m_inspector;
|
|
||||||
m_inspector = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *errorString)
|
bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *errorString)
|
||||||
|
|||||||
Reference in New Issue
Block a user