aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2011-05-23 13:45:31 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2011-05-23 13:45:31 +0200
commita12c55f1b3b2ec76c2e8d1c080897c55e0528b11 (patch)
tree9737cb66c7a4e7a883b37d4ee8aaba4538b722ed /src
parent2a720d2056b6f0b78b6d24928f7e2d9f8a38edb3 (diff)
Set paintNode to 0 after deleting it.
Otherwise, we will get crashes if we're switching back and froth between ItemHasContent set to true and false.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/items/qsgcanvas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index c0a5ceff58..16bd8ce44c 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -1822,6 +1822,7 @@ void QSGCanvasPrivate::updateDirtyNode(QSGItem *item)
}
} else if (itemPriv->paintNode) {
delete itemPriv->paintNode;
+ itemPriv->paintNode = 0;
}
}