diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp index 830c5da6b6c..b529359f71c 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(); }