summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/handler_p.h
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2017-06-29 16:31:49 +0200
committerSean Harmer <sean.harmer@kdab.com>2017-06-30 17:29:43 +0000
commit513b4fbcabfb6c8e67c09c99ab0f1b7f7753a50e (patch)
treed18ed0222b3ec7fc0a08ef2f7f68f83303459526 /src/animation/backend/handler_p.h
parentdee403c691233657f636bd8dc40fab65cc0e0f3b (diff)
Fix ClipAnimator crash when removing animators
When passing around animator handles, care must be taken before actually using them since the animator component may have been destroyed in the meantime. Change-Id: Ib963d1422e1626b5a06e5bb157a0b6aab76b961d Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/handler_p.h')
-rw-r--r--src/animation/backend/handler_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/animation/backend/handler_p.h b/src/animation/backend/handler_p.h
index 52892f9d0..97adfdc13 100644
--- a/src/animation/backend/handler_p.h
+++ b/src/animation/backend/handler_p.h
@@ -116,6 +116,9 @@ public:
QVector<Qt3DCore::QAspectJobPtr> jobsToExecute(qint64 time);
+ void cleanupHandleList(QVector<HClipAnimator> *animators);
+ void cleanupHandleList(QVector<HBlendedClipAnimator> *animators);
+
private:
QScopedPointer<AnimationClipLoaderManager> m_animationClipLoaderManager;
QScopedPointer<ClipAnimatorManager> m_clipAnimatorManager;