Rewrite QAnimationGroupJob::clear() method
authorCharles Yin <charles.yin@nokia.com>
Tue, 3 Apr 2012 06:52:29 +0000 (16:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Apr 2012 06:33:59 +0000 (08:33 +0200)
commit2149e9e617f72324bc9297ade3dc1884e15d75c1
treea5675b7d6eaba2bb3fcee5ea00ac77e25cf9bb29
parent5874e29b851101291a93278351da32a5cdbade9c
Rewrite QAnimationGroupJob::clear() method

Before removing and deleting children, set the m_group to 0 to avoid potential
cycling deletions when this method is called from QAnimationGroupJob::~QAnimationGroupJob().

Change-Id: Idb6920be71fc9e033e5a76b724c9550018995035
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/animations/qanimationgroupjob.cpp