Clean up dangling pointers in the particle system
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 15 Mar 2012 15:14:45 +0000 (16:14 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 16:09:14 +0000 (17:09 +0100)
commit3bf01de85d943432d66b5fa8048275817fd20020
treea53b3b27e4a29341a80d7fd905cf30dac1aff9c2
parentcbb53d463cff9b8ea7cf42e9e8782a7974c4fd1b
Clean up dangling pointers in the particle system

When the scenegraph has been invalidated all node
pointers have been deleted. In the image particle case
the material is managed by the nodes and must also
be reset.

Change-Id: I867f0d36a3ea281a58c21f04c937b16b042ef373
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
src/quick/particles/qquickcustomparticle.cpp
src/quick/particles/qquickcustomparticle_p.h
src/quick/particles/qquickimageparticle.cpp
src/quick/particles/qquickimageparticle_p.h
src/quick/particles/qquickparticlepainter.cpp
src/quick/particles/qquickparticlepainter_p.h