Victor Komarov wrote:
I can confirm that there’s a bug in TextureCache loadImageAsync method, which will cause crashes, if your application is heavy on graphics and reloads resources between scenes. Android is not affected. I was really impressed seeing iPad2 crashing while htc wildfire worked properly.
>
Moving
CCThread thread; thread.createAutoreleasePool();
inside while loop in loadImage function in CCTextureCache.cpp fixes that issue, at least I can see no leaks in xcode tool and application works as expected.
>
Thanks to ruler zhang
No at all~
My partner solved it actually, why not commit the code to github? Maybe it can help others.