From 896cf240f3b0f61216ad32645b548fbbe1f57113 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Tue, 12 Oct 2021 17:57:07 +0200 Subject: [PATCH] defensive checks added --- src/controls/QskHintAnimator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/controls/QskHintAnimator.cpp b/src/controls/QskHintAnimator.cpp index ee5a1e18..95812bb1 100644 --- a/src/controls/QskHintAnimator.cpp +++ b/src/controls/QskHintAnimator.cpp @@ -216,7 +216,8 @@ QskHintAnimatorTable::QskHintAnimatorTable() QskHintAnimatorTable::~QskHintAnimatorTable() { - qskAnimatorGuard->unregisterTable( this ); + if ( qskAnimatorGuard ) + qskAnimatorGuard->unregisterTable( this ); delete m_data; } @@ -227,7 +228,8 @@ void QskHintAnimatorTable::start( QskControl* control, if ( m_data == nullptr ) { m_data = new PrivateData(); - qskAnimatorGuard->registerTable( this ); + if ( qskAnimatorGuard ) + qskAnimatorGuard->registerTable( this ); } auto& animator = m_data->map[ aspect ];