diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-06-01 15:11:34 +0200 |
---|---|---|
committer | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2011-06-06 11:22:27 +0200 |
commit | fafe446dfe07606100d055395360513ed4eb4ecd (patch) | |
tree | 60bd3556f3f3e3ef5a316b4dd54cf393bbb43af2 | |
parent | 4d0e5d954497f565ebe0d91becad094890bf8f90 (diff) |
Fix crash for prematurely deleted QSGItemPrivate::itemNodeInstance
The OwnedByParent flag was set whereas it should had been cleared
right after creating QSGItemPrivate::itemNodeInstance.
Reviewed-by: Kim
-rw-r--r-- | src/declarative/items/qsgitem_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/qsgitem_p.h b/src/declarative/items/qsgitem_p.h index c76eceb674..0f4a3213b4 100644 --- a/src/declarative/items/qsgitem_p.h +++ b/src/declarative/items/qsgitem_p.h @@ -670,6 +670,7 @@ QSGTransformNode *QSGItemPrivate::itemNode() { if (!itemNodeInstance) { itemNodeInstance = createTransformNode(); + itemNodeInstance->setFlag(QSGNode::OwnedByParent, false); #ifdef QML_RUNTIME_TESTING Q_Q(QSGItem); itemNodeInstance->description = QString::fromLatin1("QSGItem(%1)").arg(QString::fromLatin1(q->metaObject()->className())); |