forked from qt-creator/qt-creator
QmlDesigner.instances: crash fix
NodeInstanceServer::clearScene() deletes the objects. The m_designerSupport hold pointers to all objects for cleanup in destructor. Change-Id: I5ad4361d0c1de6f9eb9fb0d5cd80cf66717ce7fd Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
@@ -143,9 +143,9 @@ void Qt5NodeInstanceServer::createScene(const CreateSceneCommand &command)
|
||||
|
||||
void Qt5NodeInstanceServer::clearScene(const ClearSceneCommand &command)
|
||||
{
|
||||
NodeInstanceServer::clearScene(command);
|
||||
delete m_designerSupport;
|
||||
m_designerSupport = 0;
|
||||
NodeInstanceServer::clearScene(command);
|
||||
}
|
||||
|
||||
} // QmlDesigner
|
||||
|
||||
Reference in New Issue
Block a user