Merge pull request #3553 from DarraghCoy/ccset_leak_fix

Fix a memory leak in Set::removeAllObjects.
This commit is contained in:
James Chen 2013-09-25 20:00:08 -07:00
commit 93436eea3c
1 changed files with 2 additions and 0 deletions

View File

@ -121,7 +121,9 @@ void Set::removeAllObjects()
tmp = it;
++tmp;
Object * obj = *it;
_set->erase(it);
CC_SAFE_RELEASE(obj);
it = tmp;
}
}