Skip to content
Snippets Groups Projects
Commit c8f53f9b authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Olivier Stasse
Browse files

Fix DynamicPinocchio destructor

parent 7349c38a
No related branches found
No related tags found
No related merge requests found
...@@ -233,11 +233,12 @@ DynamicPinocchio( const std::string & name) ...@@ -233,11 +233,12 @@ DynamicPinocchio( const std::string & name)
DynamicPinocchio::~DynamicPinocchio( void ) { DynamicPinocchio::~DynamicPinocchio( void ) {
sotDEBUGIN(15); sotDEBUGIN(15);
// if (0!=m_model){ delete m_model; m_model=NULL;} // TODO currently, m_model and m_data are pointers owned by the Python interpreter
if (0!=m_data) // so we should not delete them.
{ delete m_data; m_data=NULL; } // I (Joseph Mirabel) think it would be wiser to make them belong to this class but
if (0!=m_model) // I do not know the impact it has.
{ delete m_model; m_model=NULL; } //if (0!=m_data ) { delete m_data ; m_data =NULL; }
//if (0!=m_model) { delete m_model; m_model=NULL; }
for( std::list< SignalBase<int>* >::iterator iter = genericSignalRefs.begin(); for( std::list< SignalBase<int>* >::iterator iter = genericSignalRefs.begin();
iter != genericSignalRefs.end(); iter != genericSignalRefs.end();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment