mirror of https://github.com/axmolengine/axmol.git
A memory leak fix in CCNotificationCenter.
This commit is contained in:
parent
caf7b2a0e4
commit
a4e04d70c9
|
@ -181,9 +181,7 @@ CCNotificationObserver::~CCNotificationObserver()
|
|||
{
|
||||
CC_SAFE_RELEASE_NULL(m_object);
|
||||
CC_SAFE_RELEASE_NULL(m_target);
|
||||
|
||||
if (m_name)
|
||||
delete m_name;
|
||||
CC_SAFE_DELETE_ARRAY(m_name);
|
||||
}
|
||||
|
||||
void CCNotificationObserver::performSelector(CCObject *obj)
|
||||
|
|
Loading…
Reference in New Issue