diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-12-12 18:34:53 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2018-12-13 17:45:58 +0000 |
commit | 9929c250a3829aec82955da91413bc7673dc159d (patch) | |
tree | e4a14c9aebfbdfef1f647a4120bd6aa073998612 /src/qml/animations/qsequentialanimationgroupjob_p.h | |
parent | 39643ef86e8bc48b8b6cf83ac0ebae7411029030 (diff) |
Animation: Avoid dangling pointers
When we clear a QSequentialAnimationGroupJob, we also need to clear its
m_currentAnimation, as that always points to some animation job in its
list.
Change-Id: I1baae5121b00b5f65e84a7b5363704b6832ed386
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/animations/qsequentialanimationgroupjob_p.h')
-rw-r--r-- | src/qml/animations/qsequentialanimationgroupjob_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/animations/qsequentialanimationgroupjob_p.h b/src/qml/animations/qsequentialanimationgroupjob_p.h index 13f9806be1..34e8fe1e08 100644 --- a/src/qml/animations/qsequentialanimationgroupjob_p.h +++ b/src/qml/animations/qsequentialanimationgroupjob_p.h @@ -68,6 +68,7 @@ public: int duration() const override; QAbstractAnimationJob *currentAnimation() const { return m_currentAnimation; } + void clear() override; protected: void updateCurrentTime(int) override; |