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:
Thomas Hartmann
2012-10-11 13:32:27 +02:00
parent 97cc22d6ee
commit 16c5a1493d
@@ -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