Skip to content

Commit

Permalink
Delete frame_locked_markers when reusing marker (#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>
(cherry picked from commit dbc240d)
  • Loading branch information
sloretz authored and mergify[bot] committed Sep 26, 2022
1 parent eedb2ac commit ec74772
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 ec74772

Please sign in to comment.