We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CCParticleSystem and its children are not released correctly in tests
CCParticleSystem and its children are not released correctly in tests
Bug #949 [Closed]
I didn’t find your usage in ParticleTest. After you construct a particle, when you want to use the particle, you surely add it into a CCNode or CCNode’s subclass(e.g. CCLayer), at the time you don’t want to display it, you should invoke removeFromParentAndCleanup function which will call the unscheduleUpdate. Or when the particle’s parent node is destroyed, it will cleanup it’s children which contain your particle. So I don’t think this is a bug.
- Project changed from cocos2d-x to cpp
- Category deleted (
5) - Target version deleted (
cocos2d-1.0.1-x-0.12.0)
Status: | Closed | |
---|---|---|
Start date: | 2012-01-16 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 0% |
|
Category: | - | |
Target version: | - |
in ParticleTest.cpp, for example
An extra invoke is required:
CCSchedule may cause “unreleased memory block” in cocos2dx framework. We need to check them.