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