From 0c6c4ffacc6e9ff57e041329e4952fd61ad0717c Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Thu, 24 May 2012 14:08:20 +1000 Subject: [PATCH] Add more RETURN_IF_DELETED checking in animation code Change-Id: I5f77cdc7a6bede547119b2a0b59b41d27cfc401a Reviewed-by: Martin Jones --- src/qml/animations/qabstractanimationjob.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)); } } -- 1.7.2.5