From: Charles Yin Date: Thu, 24 May 2012 04:08:20 +0000 (+1000) Subject: Add more RETURN_IF_DELETED checking in animation code X-Git-Tag: 071012131707~298 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c6c4ffacc6e9ff57e041329e4952fd61ad0717c;p=profile%2Fivi%2Fqtdeclarative.git Add more RETURN_IF_DELETED checking in animation code Change-Id: I5f77cdc7a6bede547119b2a0b59b41d27cfc401a Reviewed-by: Martin Jones --- diff --git a/src/qml/animations/qabstractanimationjob.cpp b/src/qml/animations/qabstractanimationjob.cpp index 52ec00e..714012e 100644 --- a/src/qml/animations/qabstractanimationjob.cpp +++ b/src/qml/animations/qabstractanimationjob.cpp @@ -355,7 +355,7 @@ void QAbstractAnimationJob::setState(QAbstractAnimationJob::State newState) if (oldState == Stopped) { if (isTopLevel) { // currentTime needs to be updated if pauseTimer is active - QQmlAnimationTimer::ensureTimerUpdate(); + RETURN_IF_DELETED(QQmlAnimationTimer::ensureTimerUpdate()); RETURN_IF_DELETED(setCurrentTime(m_totalCurrentTime)); } }