Skip to content

Commit

Permalink
Delete frame_locked_markers when reusing marker (ros2#907)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz authored Sep 26, 2022
1 parent a535da7 commit dbc240d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ MarkerBasePtr MarkerCommon::createOrGetOldMarker(
if (it != markers_.end()) {
marker = it->second;
markers_with_expiration_.erase(marker);
frame_locked_markers_.erase(marker);
if (message->type != marker->getMessage()->type) {
markers_.erase(it);
marker = createMarker(message);
Expand Down

0 comments on commit dbc240d

Please sign in to comment.