Functions with enumerated default arguments bad

Found a side effect of SWIG's "compactdefaultargs".  It highlighted an
error we had in creating the data_record group in our ball sim.  We did
not release the memory from python and it was causing a double free
at exit.

refs #176
This commit is contained in:
Alex Lin 2016-02-18 09:56:11 -06:00
parent 83572b20cb
commit 20dc7b1386

View File

@ -13,5 +13,6 @@ drg0.add_variable("ball.state.output.acceleration[1]", "ball.state.out.accelerat
drg0.add_variable("ball.state.output.external_force[0]", "ball.state.out.external_force[0]")
drg0.add_variable("ball.state.output.external_force[1]", "ball.state.out.external_force[1]")
drg0.thisown = 0
trick.add_data_record_group( drg0 )