diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-07-29 13:53:35 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-29 09:39:41 +0200 |
commit | 0e68a621135102cd441e4bce725628a07d51f353 (patch) | |
tree | 93919d1c1f6a4311d33b0b41f86c2bdfdfb5cd29 /src | |
parent | 8fed8bf724b0df6e7b63080a98955f2e295f11c6 (diff) |
Mark objects from Component.createObject() as destructible
Change-Id: I00a1a2b5cca80c3e2ea097690cadf21581e1356d
Task-number: QTBUG-20626
Reviewed-on: http://codereview.qt.nokia.com/2367
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qdeclarativecomponent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecomponent.cpp b/src/declarative/qml/qdeclarativecomponent.cpp index e99928d862..b6bcc64afa 100644 --- a/src/declarative/qml/qdeclarativecomponent.cpp +++ b/src/declarative/qml/qdeclarativecomponent.cpp @@ -748,6 +748,10 @@ void QDeclarativeComponent::createObject(QDeclarativeV8Function *args) completeCreate(); + QDeclarativeData *ddata = QDeclarativeData::get(ret); + Q_ASSERT(ddata); + ddata->setImplicitDestructible(); + RETURN(object); #undef RETURN |