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 on Android ! #47

Closed
zcgit opened this issue May 21, 2014 · 6 comments
Closed

memory leaks on Android ! #47

zcgit opened this issue May 21, 2014 · 6 comments

Comments

@zcgit
Copy link
Contributor

zcgit commented May 21, 2014

我做了个测试,创建一千个CClabelTTF,内存会上涨再下降到原来状态,但是CCRichLabelTTF就不会下降到理想状态,初步判断,android端的实现有内存泄漏的问题,具体原因我正在查找,待会晚上看看能不能找到原因。

@stubma
Copy link
Owner

stubma commented May 21, 2014

差多少?你还要看是否一直递增.
android端,如果内嵌了atlas中的图片,最后一张atlas是有一个Bitmap一直缓存着的。CLBitmapDC是一个单例共享的,也是一直会在的

@zcgit
Copy link
Contributor Author

zcgit commented May 21, 2014

没用atlas,我这测试会一直涨,正在排查。

@zcgit zcgit closed this as completed May 22, 2014
@stubma
Copy link
Owner

stubma commented May 22, 2014

关闭的时候至少写个结论

@zcgit
Copy link
Contributor Author

zcgit commented May 22, 2014

OK, i pull 了一个requet,具体的你可以看下我加的注释。

@stubma
Copy link
Owner

stubma commented May 22, 2014

thanks, 改的很对, 确实不应该retain

@zcgit
Copy link
Contributor Author

zcgit commented May 22, 2014

找的好幸苦。。。最后排查到label里,其实ios也有,我之前一直以为只有android。

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

2 participants