Hi there!
I'm working in a Cocos2D + Chipmunk project and I've started testing leaks and allocations. I've found plenty of leaks and raising allocations which I can't understand where they come from...
Object allocations: 16 bytes malloc don't stop increasing during gameplay...
Code:
Category: Malloc 16 Bytes
Size: 16
Resp. Library: QuartzCore
Resp. Caller: CA::Display::DisplayLink::dispatch(unsigned long long, unsigned long long)
They keep increasing during gameplay and I don't know where to find it because I don't know where it happens (I don't even know if it's my own code what causes this)...
Memory leaks: Strange GeneralBlocks leaking like hell...
Code:
Leaked object: GeneralBlock-64/48/32
Size: 64, 48, 32 Bytes
Resp. Library: QuartzCore
Resp. Frame: ensure_displays()
Leaked object: CCSprite
Size: 320 Bytes
Resp. Library: UIKit
Resp. Frame: -[UIWindow _sendTouchesForEvent:]
I create the CCSprites and add them to "self" (where I think they are autoreleased when needed) but I don't retain them so there's no need to call release anywhere (in fact I don't do this), so I don't know where to solve it... And the generalBlock leaks even worse, I don't know where they come from and even why...
Anyone can help me with this?
Thanks in advance!
PS: Test are done on the real device, a 3GS iPhone with 3.1.3 OS and I'm working with "cocos2d version 0.99.0 rc" and "Chipmunk v5.1.0".