mirror of https://github.com/axmolengine/axmol.git
Revert "Review feedback: fix memory leak discovered."
This reverts commit 07646f1c82
.
This commit is contained in:
parent
8ee90389b4
commit
824efceb3f
|
@ -566,6 +566,7 @@ void EventDispatcher::removeEventListener(EventListener* listener)
|
|||
if (_inDispatch == 0)
|
||||
{
|
||||
listeners->erase(iter);
|
||||
CC_SAFE_RELEASE(l);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -576,7 +577,6 @@ void EventDispatcher::removeEventListener(EventListener* listener)
|
|||
}
|
||||
|
||||
isFound = true;
|
||||
CC_SAFE_RELEASE(l);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue