A memory leak fix in CCNotificationCenter.

This commit is contained in:
James Chen 2012-09-26 15:51:14 +08:00
parent caf7b2a0e4
commit a4e04d70c9
1 changed files with 1 additions and 3 deletions

View File

@ -181,9 +181,7 @@ CCNotificationObserver::~CCNotificationObserver()
{ {
CC_SAFE_RELEASE_NULL(m_object); CC_SAFE_RELEASE_NULL(m_object);
CC_SAFE_RELEASE_NULL(m_target); CC_SAFE_RELEASE_NULL(m_target);
CC_SAFE_DELETE_ARRAY(m_name);
if (m_name)
delete m_name;
} }
void CCNotificationObserver::performSelector(CCObject *obj) void CCNotificationObserver::performSelector(CCObject *obj)