Code: Select all
// cpcollision.c @ 349 :
colfuncs = (collisionFunc *)calloc(CP_NUM_SHAPES*CP_NUM_SHAPES, sizeof(collisionFunc));
Code: Select all
// cpcollision.c @ 349 :
colfuncs = (collisionFunc *)calloc(CP_NUM_SHAPES*CP_NUM_SHAPES, sizeof(collisionFunc));
It's definitely a memory leak though - if you use your own memory manager ( malloc/free replacements ) with any sort of leak detection, it shows up after adding your very first Chipmunk function call... If I'd never touched the library before, that would be quite offputting - but I've messed with it on PC, so I know how cool it isslembcke wrote:I guess I didn't really consider this a memory leak as you will probably be using Chipmunk until the program exits, and it's only a few bytes of RAM anyway.
Users browsing this forum: No registered users and 2 guests