[ODE] memory leak from redundant allocation in dBodyCreate

Christoph Beyer boernerb at web.de
Wed Dec 6 08:36:18 MST 2006

I have created a new bugfix, bacause i think this is the most stable.

here is the new end of the dBodyCreate(...) function:

  // set auto-disable parameters
  b->average_avel_buffer = b->average_lvel_buffer = 0; // no buffer at 
  dBodySetAutoDisableDefaults (b);    // must do this after adding to world
  b->adis_stepsleft = b->adis.idle_steps;
  b->adis_timeleft = b->adis.idle_time;
  b->average_counter = 0;
  b->average_ready = 0; // average buffer not filled on the beginning
  dBodySetAutoDisableAverageSamplesCount(b, b->adis.average_samples);

  return b;

a patch has been submitted:

can someone please put it into svn?


More information about the ODE mailing list