Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
sot-dynamic-pinocchio
Commits
c8f53f9b
Commit
c8f53f9b
authored
Sep 26, 2018
by
Joseph Mirabel
Committed by
Olivier Stasse
Oct 26, 2018
Browse files
Fix DynamicPinocchio destructor
parent
7349c38a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sot-dynamic-pinocchio.cpp
View file @
c8f53f9b
...
...
@@ -233,11 +233,12 @@ DynamicPinocchio( const std::string & name)
DynamicPinocchio
::~
DynamicPinocchio
(
void
)
{
sotDEBUGIN
(
15
);
// if (0!=m_model){ 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
;
}
// TODO currently, m_model and m_data are pointers owned by the Python interpreter
// so we should not delete them.
// I (Joseph Mirabel) think it would be wiser to make them belong to this class but
// I do not know the impact it has.
//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
();
iter
!=
genericSignalRefs
.
end
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment