Added check before dereferencing.

This commit is contained in:
Vincent Richard 2012-04-05 12:08:01 +02:00
parent 97a88a496b
commit 1ee2f07b1e

View File

@ -338,7 +338,9 @@ protected:
{
if (m_ptr)
{
m_ptr->getRefManager()->releaseStrong();
if (m_ptr->getRefManager())
m_ptr->getRefManager()->releaseStrong();
m_ptr = 0;
}
}