defensive checks added

This commit is contained in:
Uwe Rathmann 2021-10-12 17:57:07 +02:00
parent fef2464120
commit 896cf240f3

View File

@ -216,6 +216,7 @@ QskHintAnimatorTable::QskHintAnimatorTable()
QskHintAnimatorTable::~QskHintAnimatorTable()
{
if ( qskAnimatorGuard )
qskAnimatorGuard->unregisterTable( this );
delete m_data;
}
@ -227,6 +228,7 @@ void QskHintAnimatorTable::start( QskControl* control,
if ( m_data == nullptr )
{
m_data = new PrivateData();
if ( qskAnimatorGuard )
qskAnimatorGuard->registerTable( this );
}