-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added device for synchronization #2772
base: master
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update the release notes by adding a file in |
close(); | ||
return false; | ||
} | ||
port_pointers_list.push_back(current_port); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go before the if
clause, otherwise the newly constructed current_port
will not be accessible by the close
handler for deletion, thus causing a memory leak.
bool SystemReady_nws_yarp::close() | ||
{ | ||
for (auto elem: port_pointers_list){ | ||
elem->close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There used to be a delete
here in previous revisions, it needs to be kept to avoid memory leaks.
71900d2
to
ead1caf
Compare
systemReady {#master}
yarp
devices