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

从图片文件创建的LTexture不能正确释放 #70

Open
GoogleCodeExporter opened this issue Jul 7, 2015 · 1 comment
Open

从图片文件创建的LTexture不能正确释放 #70

GoogleCodeExporter opened this issue Jul 7, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

在LTextures的第136行,起
if (texture.imageData.fileName == null) {
    texture.imageData.source = null;
    texture.imageData.pixmap = null;
    texture.imageData = null;
}
从图片文件创建的LTexture的fileName肯定不为空,这样会导致imag
eData无法释放,在连续加载并且dispose几张立绘之后内存会崩��
�
不知道这里是不是应该将 == 改成 !=

Original issue reported on code.google.com by cloudeecn on 26 Feb 2012 at 3:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant