summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qabstractanimation.cpp
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/qabstractanimation.cpp
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/qabstractanimation.cpp')
-rw-r--r--src/corelib/animation/qabstractanimation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index b507049cc4..8a9d86b7c5 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -1067,6 +1067,8 @@ QAbstractAnimation::~QAbstractAnimation()
if (oldState == QAbstractAnimation::Running)
QAnimationTimer::unregisterAnimation(this);
}
+ if (d->group)
+ d->group->removeAnimation(this);
}
/*!