cpSpaceStep.c uses malloc instead of cpmalloc

Discuss any Chipmunk bugs here.
Post Reply
Extrawurst
Posts: 5
Joined: Sun Nov 28, 2010 12:47 pm
Contact:

cpSpaceStep.c uses malloc instead of cpmalloc

Post by Extrawurst »

cpSpaceStep.c(72): cpContactBuffer *buffer = (cpContactBuffer *)malloc(sizeof(cpContactBuffer));

to be consistent with the rest of the lib here should be used cpmalloc too. i just noticed that while porting the code to the D programming language.

Regards,
Stephan
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: cpSpaceStep.c uses malloc instead of cpmalloc

Post by slembcke »

Good catch. Fixed in trunk.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests