We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Potential SERIOUS MEMORY LEAK on CCDirector::popScene(void)
Potential SERIOUS MEMORY LEAK on CCDirector::popScene(void)
Bug #3415 [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/8284
Status: | Closed | |
---|---|---|
Start date: | 2013-12-17 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 100% |
|
Category: | all | |
Target version: | - |
I found CCDirector::popScene may cause memory leak on some occasions.
The thing is, when u popScene more than once in a single frameupdate, like
then everything between current scene and last scene will be leaked out. Which could be a lot of stuffs out there.
I modified the code as below and it worked fine until now.