Closed GoogleCodeExporter closed 8 years ago
You know, I think I ran into a similar problem before too. Ruby would segfault
if you threw an exception in an overridden initialize method.
I should really just move away from using malloc at all instead of calloc. It's
not like there is a serious speed difference between the two, especially now
that Chipmunk does a good job of pooling memory. All it does is optimize
creating a scene by a millisecond or two.
Original comment by slemb...@gmail.com
on 2 May 2011 at 2:55
Original comment by slemb...@gmail.com
on 2 May 2011 at 3:39
Thanks for fixing this. Where will this appear, in 6.x or will there be a
5.3.5?
As for malloc versus calloc, I would definitely use calloc in C for any struct
that contains pointers. Then, of course, it's still necessary to check if these
pointers are NULL or not, though. :)
Original comment by beo...@gmail.com
on 2 May 2011 at 10:00
It committed the fix to both the trunk (5.x) and 6.x branches. In about two
weeks I'll be done with a big contract I'm working on, and then will have time
to work on Chipmunk full time to get 5.3.5 and 6.0 released. At least that is
the plan.
Original comment by slemb...@gmail.com
on 2 May 2011 at 10:15
Original issue reported on code.google.com by
beo...@gmail.com
on 2 May 2011 at 9:21