diff options
Diffstat (limited to 'src/quick/util/qquicksmoothedanimation.cpp')
-rw-r--r-- | src/quick/util/qquicksmoothedanimation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/util/qquicksmoothedanimation.cpp b/src/quick/util/qquicksmoothedanimation.cpp index 55011f5a46..71dacfcb1d 100644 --- a/src/quick/util/qquicksmoothedanimation.cpp +++ b/src/quick/util/qquicksmoothedanimation.cpp @@ -378,11 +378,11 @@ QQuickSmoothedAnimationPrivate::QQuickSmoothedAnimationPrivate() QQuickSmoothedAnimationPrivate::~QQuickSmoothedAnimationPrivate() { + typedef QHash<QQmlProperty, QSmoothedAnimation* >::iterator ActiveAnimationsHashIt; + delete anim; - QHash<QQmlProperty, QSmoothedAnimation* >::iterator it; - for (it = activeAnimations.begin(); it != activeAnimations.end(); ++it) { + for (ActiveAnimationsHashIt it = activeAnimations.begin(), end = activeAnimations.end(); it != end; ++it) it.value()->clearTemplate(); - } } void QQuickSmoothedAnimationPrivate::updateRunningAnimations() |