forked from qt-creator/qt-creator
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: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user