summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qanimationgroup_p.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-14 12:37:40 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-05-23 16:15:00 +0200
commit48b707224efaa54b4dfd831cfd8fbe9006f99588 (patch)
tree7cdefb068ef609ba1252d5bca0e5f4aabc5f7bfe /src/corelib/animation/qanimationgroup_p.h
parentcf7d990a486b406d558e3291247d4323a9f48c73 (diff)
Fix invalid vptr during destruction of animations
Fixes UBSAN warnings about objects used after partial destruction. Change-Id: Iceea083a77d47335ef595c0ff97b87f35f42e56f Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/animation/qanimationgroup_p.h')
-rw-r--r--src/corelib/animation/qanimationgroup_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/animation/qanimationgroup_p.h b/src/corelib/animation/qanimationgroup_p.h
index ff759d11fd..d0b2e9f9bb 100644
--- a/src/corelib/animation/qanimationgroup_p.h
+++ b/src/corelib/animation/qanimationgroup_p.h
@@ -73,6 +73,8 @@ public:
virtual void animationInsertedAt(int) { }
virtual void animationRemoved(int, QAbstractAnimation *);
+ void clear(bool onDestruction);
+
void disconnectUncontrolledAnimation(QAbstractAnimation *anim)
{
//0 for the signal here because we might be called from the animation destructor