[ODE] Fix leaking of s_cachedPosR in collision_kernel.cpp

Jon Watte (ODE) hplus-ode at mindcontrol.org
Sun Jun 18 11:21:05 MST 2006


"better" in the sense that if you don't call dCloseODE(), it doesn't 
happen? I don't know; I chose this solution. Feel free to fix it some 
other way if you prefer.

Cheers,

			/ h+

Jason Perkins wrote:
> On 6/18/06, Jon Watte (ODE) <hplus-ode at mindcontrol.org> wrote:
>> When using leak checking allocators, the cached posR
>> inside collision_kernel.cpp gets reported. This patch
>> makes sure it gets disposed before the Windows leak
>> checker finds it, enabling a clean test run (at least
>> in my test code).
> 
> This does the trick, but would it be better to do it in dCloseODE()?
> 
> Jason
> 
> 


More information about the ODE mailing list