[ODE] dSpaceDestroy incomplete?

Alex Rubinsteyn rubnstyn at uiuc.edu
Tue Feb 22 13:06:06 MST 2005


I've been getting some memory problems with my geoms, so I
went snooping through the code...

It looks to me (though I'm totally new to ODE and could be
wrong) that dSpaceDestroy is missing its geom cleanup code. 

The source for ode 0.5:
void dSpaceDestroy (dxSpace *space)
{
  dAASSERT (space);
  dUASSERT (dGeomIsSpace(space),"argument not a space");
  dGeomDestroy (space);
}

Shouldn't this function check space->cleanup and if that's 1,
call dGeomDestroy on all contained geoms?

-Alex




More information about the ODE mailing list