robotology-legacy / mex-wholebodymodel

Matlab MEX interface to the iWholeBodyModel interface.
11 stars 9 forks source link

[interface] ComponentManager is allocated and never deleted #46

Closed traversaro closed 8 years ago

traversaro commented 8 years ago

The instance of the ComponentManager is allocated in https://github.com/robotology/mex-wholebodymodel/blob/77139ce83e22b766085d83542c7a1caedde74cdf/src/componentmanager.cpp#L40 , but is never properly deleted.

traversaro commented 8 years ago

Fixed this bug (and all other problems with memory allocation and deallocation, that prevented the mex to be unloaded from matlab in a clean way) in three commits:

I will merge it together with the fix to the kinematic energy conservation tests, then we can close this issue.

naveenoid commented 8 years ago

good catch! Not sure when it crept in. :+1: