mirror of https://github.com/axmolengine/axmol.git
Merge pull request #3553 from DarraghCoy/ccset_leak_fix
Fix a memory leak in Set::removeAllObjects.
This commit is contained in:
commit
93436eea3c
|
@ -121,7 +121,9 @@ void Set::removeAllObjects()
|
|||
|
||||
tmp = it;
|
||||
++tmp;
|
||||
Object * obj = *it;
|
||||
_set->erase(it);
|
||||
CC_SAFE_RELEASE(obj);
|
||||
it = tmp;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue