diff --git a/rclcpp/src/rclcpp/context.cpp b/rclcpp/src/rclcpp/context.cpp index fe92cfe..8777e5f 100644 --- a/rclcpp/src/rclcpp/context.cpp +++ b/rclcpp/src/rclcpp/context.cpp @@ -311,6 +311,7 @@ Context::clean_up() { shutdown_reason_ = ""; rcl_context_.reset(); + sub_contexts_.clear(); } std::vector