Added check before dereferencing.
This commit is contained in:
parent
97a88a496b
commit
1ee2f07b1e
@ -338,7 +338,9 @@ protected:
|
||||
{
|
||||
if (m_ptr)
|
||||
{
|
||||
m_ptr->getRefManager()->releaseStrong();
|
||||
if (m_ptr->getRefManager())
|
||||
m_ptr->getRefManager()->releaseStrong();
|
||||
|
||||
m_ptr = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user