We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue is migrated from here. It was created at 2014/03/03 06:18:58 +0000
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.
The text was updated successfully, but these errors were encountered:
Now Node will stop all actions in destructor.
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: