Commit c7963126 authored by Marco Bubke's avatar Marco Bubke Committed by Thomas Hartmann
Browse files

QmlDesigner.NodeInstances: Objects are not deleted by the JavaScript

parent db4949d3
...@@ -760,6 +760,8 @@ QObject *ObjectNodeInstance::createInstance(const NodeMetaInfo &metaInfo, QDecla ...@@ -760,6 +760,8 @@ QObject *ObjectNodeInstance::createInstance(const NodeMetaInfo &metaInfo, QDecla
QDeclarativeEngine::setContextForObject(object, context); QDeclarativeEngine::setContextForObject(object, context);
} }
QDeclarativeEngine::setObjectOwnership(object, QDeclarativeEngine::CppOwnership);
return object; return object;
} }
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