mirror of https://github.com/axmolengine/axmol.git
issues #14050 ActionManager memory leak
This commit is contained in:
parent
cdf6fa8a54
commit
be4724ef47
|
@ -450,6 +450,11 @@ void ActionManager::update(float dt)
|
|||
{
|
||||
deleteHashElement(_currentTarget);
|
||||
}
|
||||
//if some node refrence 'target', it's refrence count >= 2 (issues #14050)
|
||||
else if (_currentTarget->target->getReferenceCount() == 1)
|
||||
{
|
||||
deleteHashElement(_currentTarget);
|
||||
}
|
||||
}
|
||||
|
||||
// issue #635
|
||||
|
|
Loading…
Reference in New Issue