defensive checks added
This commit is contained in:
parent
fef2464120
commit
896cf240f3
@ -216,7 +216,8 @@ QskHintAnimatorTable::QskHintAnimatorTable()
|
|||||||
|
|
||||||
QskHintAnimatorTable::~QskHintAnimatorTable()
|
QskHintAnimatorTable::~QskHintAnimatorTable()
|
||||||
{
|
{
|
||||||
qskAnimatorGuard->unregisterTable( this );
|
if ( qskAnimatorGuard )
|
||||||
|
qskAnimatorGuard->unregisterTable( this );
|
||||||
delete m_data;
|
delete m_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,7 +228,8 @@ void QskHintAnimatorTable::start( QskControl* control,
|
|||||||
if ( m_data == nullptr )
|
if ( m_data == nullptr )
|
||||||
{
|
{
|
||||||
m_data = new PrivateData();
|
m_data = new PrivateData();
|
||||||
qskAnimatorGuard->registerTable( this );
|
if ( qskAnimatorGuard )
|
||||||
|
qskAnimatorGuard->registerTable( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& animator = m_data->map[ aspect ];
|
auto& animator = m_data->map[ aspect ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user