Skip to content
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

Use boost::shared_ptr to fix memory leak in BagPlayer #1373

Merged
merged 1 commit into from
Apr 23, 2018

Commits on Apr 22, 2018

  1. Use boost::shared_ptr to fix memory leak

    with std::map of BagCallback, instead of RAW pointer.
    
    This solves two memory leaks:
    1. On destruction, b/c the destruction doesn't delete the RAW pointers
       in the std::map.
    2. In register_callback is called with the same topic name more than
       once w/o calling unregister_callback for that topic name.
    efernandez committed Apr 22, 2018
    Configuration menu
    Copy the full SHA
    a08e4da View commit details
    Browse the repository at this point in the history