Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leaks for node with running action #8353

Closed
minggo opened this issue Sep 30, 2014 · 1 comment
Closed

Memory leaks for node with running action #8353

minggo opened this issue Sep 30, 2014 · 1 comment

Comments

@minggo
Copy link
Contributor

minggo commented Sep 30, 2014

Note

This issue is migrated from here. It was created at 2014/03/03 06:18:58 +0000

Description

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.

@minggo
Copy link
Contributor Author

minggo commented May 7, 2015

Now Node will stop all actions in destructor.

@minggo minggo closed this as completed May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant