diff options
Diffstat (limited to 'src/corelib/animation')
-rw-r--r-- | src/corelib/animation/qabstractanimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index 830c5da6b6..b529359f71 100644 --- a/src/corelib/animation/qabstractanimation.cpp +++ b/src/corelib/animation/qabstractanimation.cpp @@ -466,8 +466,8 @@ QAnimationDriver::QAnimationDriver(QAnimationDriverPrivate &dd, QObject *parent) QAnimationDriver::~QAnimationDriver() { - QUnifiedTimer *timer = QUnifiedTimer::instance(true); - if (timer->canUninstallAnimationDriver(this)) + QUnifiedTimer *timer = QUnifiedTimer::instance(false); + if (timer && timer->canUninstallAnimationDriver(this)) uninstall(); } |