ZhouWeikuan / cocos2d

cocos2d for android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4. The googlecode address is here: http://code.google.com/p/cocos2d-android-1/ . There are several demos to watch.
610 stars 291 forks source link

CCtexturecache loads textures after the other raises the OOM exception #71

Open hqq133 opened 11 years ago

hqq133 commented 11 years ago

it seems that the bitmaps aren't released at the time of the next allocation ,

The Eclipse Memory Analyzer reported that at the time the WeakHashMap reloadMap inside of GLResourceHelper was holding on to all of its keys and values, none of them were being released. Every single that had called GLResourceHelper.addLoader was being held inside of reloadMap (both res and loader). So overtime this was adding up and causing the leak.

is there a fix for this particular issue ?