We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Memory leaks for node with running action
Memory leaks for node with running action
Bug #4177 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8353
Status: | Closed | |
---|---|---|
Start date: | 2014-03-03 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | - |
code:
class Some : public : Node
{
public:
Some()
{
node = Node::create();
node->runAction( RepeatForever ( action... ) );
}
private:
Node * node;
}
...
{
Some * some = new Some;
addChild( some );
}
when will destroy some object him node will not releasing for running action;
Code:
Node::~Node()
{
...
removeAllChildAndCleanup( true );
}
Will normal executing without memory leaks.