Commit 0b3eb65f authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.NodeInstances: Workaround for property cache

The property cache in the engine is causing a crash if entry is destroyed.

Change-Id: I8bb058b3ae7c8f0c65f1b8f07676ed128e4789d3
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 3f7413fd
......@@ -198,7 +198,9 @@ NodeInstanceMetaObject::NodeInstanceMetaObject(const ObjectNodeInstancePointer &
NodeInstanceMetaObject::~NodeInstanceMetaObject()
{
cache->release();
if (cache->count() > 1) // qml is chrashing because the property cache is not removed from the engine
cache->release();
else
m_type->release();
nodeInstanceMetaObjectList.remove(this);
......
Markdown is supported
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