mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1396 from dumganhar/gles20
Reverted CCNotificationCenter.cpp.
This commit is contained in:
commit
16f77f6f53
|
@ -165,10 +165,8 @@ CCNotificationObserver::CCNotificationObserver(CCObject *target,
|
|||
CCObject *obj)
|
||||
{
|
||||
m_target = target;
|
||||
CC_SAFE_RETAIN(m_target);
|
||||
m_selector = selector;
|
||||
m_object = obj;
|
||||
CC_SAFE_RETAIN(m_object);
|
||||
|
||||
m_name = new char[strlen(name)+1];
|
||||
memset(m_name,0,strlen(name)+1);
|
||||
|
@ -179,8 +177,6 @@ CCNotificationObserver::CCNotificationObserver(CCObject *target,
|
|||
|
||||
CCNotificationObserver::~CCNotificationObserver()
|
||||
{
|
||||
CC_SAFE_RELEASE_NULL(m_object);
|
||||
CC_SAFE_RELEASE_NULL(m_target);
|
||||
CC_SAFE_DELETE_ARRAY(m_name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue