Has updated to cocos2d-2.0-x-2.0.2
Unfortunately the new version does not correct this bug.
But I saw that (2.0.2) is a new memory leak in CGColorTransformCache (~10kb per second, this was not in the previous version).
I have seriously checked out the codes of CCFileUtils::fullPathFromRelativePath(), but can not memory leak.
Is it because the memory is not recycled in time?
Thank you for your time,
maybe it does not leak memory ( maybe it zombie memory),
I thought that fullPathFromRelativePath temporary, can cause a lot of times without a thought about memory.
But how to clear memory that fullPathFromRelativePath captured?
It is possible in the execution?
Then why when I execute this code const char *str = "CloseNormal.png"; for(int i = 0; i < 100000; ++i ) { CCFileUtils::sharedFileUtils( ) -> fullPathFromRelativePath( str); }
i have:
But when I execute this code const char *str = "CloseNormal.png"; for(int i = 0; i < 10; ++i ) { CCFileUtils::sharedFileUtils( ) -> fullPathFromRelativePath( str); }
i have:
CFString used only fullPathFromRelativePath;
Please help me somebody, i don’t know how to solve this problem:(