Merge pull request #1396 from dumganhar/gles20

Reverted CCNotificationCenter.cpp.
This commit is contained in:
James Chen 2012-09-26 01:28:59 -07:00
commit 16f77f6f53
1 changed files with 0 additions and 4 deletions

View File

@ -165,10 +165,8 @@ CCNotificationObserver::CCNotificationObserver(CCObject *target,
CCObject *obj) CCObject *obj)
{ {
m_target = target; m_target = target;
CC_SAFE_RETAIN(m_target);
m_selector = selector; m_selector = selector;
m_object = obj; m_object = obj;
CC_SAFE_RETAIN(m_object);
m_name = new char[strlen(name)+1]; m_name = new char[strlen(name)+1];
memset(m_name,0,strlen(name)+1); memset(m_name,0,strlen(name)+1);
@ -179,8 +177,6 @@ CCNotificationObserver::CCNotificationObserver(CCObject *target,
CCNotificationObserver::~CCNotificationObserver() CCNotificationObserver::~CCNotificationObserver()
{ {
CC_SAFE_RELEASE_NULL(m_object);
CC_SAFE_RELEASE_NULL(m_target);
CC_SAFE_DELETE_ARRAY(m_name); CC_SAFE_DELETE_ARRAY(m_name);
} }