Projects > cpp > Issues > Bug #4177

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Memory leaks for node with running action

Bug #4177 [Closed]
Volodar 2014-03-03 06:18 . Updated about 10 years ago

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.

walzer@cocos2d-x.org 2014-10-08 02:49

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

Atom PDF

Status:Closed
Start date:2014-03-03
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-