[ODE] Fix leaking of s_cachedPosR in collision_kernel.cpp

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


Actually, looking at the code, dCloseODE() actually calls another 
function which in turn cleans up the posr cache. Thus, if you believe 
that calling dCloseODE() is required for proper ODE usage (which is a 
reasonable stance to take, although there is no dOpenODE() to match) 
then you can just take out my patch.

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
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 
> 



More information about the ODE mailing list