bitdream / loon-simple

Automatically exported from code.google.com/p/loon-simple
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
在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

GoogleCodeExporter commented 9 years ago
对了,对应20120210的3.3版本

Original comment by cloudeecn on 26 Feb 2012 at 3:54