Skip to content

Commit

Permalink
Avoid calling static node's destructor. (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
uavster committed Nov 7, 2023
1 parent f9ae31b commit e880259
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_core/utils/src/logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ rclcpp::Logger& getGlobalLoggerRef()
auto name = fmt::format("moveit_{}", rsl::rng()());
try
{
static auto moveit_node = std::make_shared<rclcpp::Node>(name);
static auto* moveit_node = new rclcpp::Node(name);
return moveit_node->get_logger();
}
catch (const std::exception& ex)
Expand Down

0 comments on commit e880259

Please sign in to comment.