Skip to content

Commit 1962ac4

Browse files
committed
Remove publisher buffer weak ptr from intra process manager when it associated publisher is removed.
Signed-off-by: Jeffery Hsu <[email protected]>
1 parent c10bcd6 commit 1962ac4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rclcpp/src/rclcpp/intra_process_manager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ IntraProcessManager::remove_publisher(uint64_t intra_process_publisher_id)
267267
std::unique_lock<std::shared_timed_mutex> lock(mutex_);
268268

269269
publishers_.erase(intra_process_publisher_id);
270+
publisher_buffers_.erase(intra_process_publisher_id);
270271
pub_to_subs_.erase(intra_process_publisher_id);
271272
}
272273

0 commit comments

Comments
 (0)