We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d3b01 commit 77d238aCopy full SHA for 77d238a
rclcpp/src/rclcpp/qos_event.cpp
@@ -35,6 +35,11 @@ UnsupportedEventTypeException::UnsupportedEventTypeException(
35
36
QOSEventHandlerBase::~QOSEventHandlerBase()
37
{
38
+ // Since the rmw event listener holds a reference to
39
+ // this callback, we need to clear it on destruction of this class.
40
+ // This clearing is not needed for other rclcpp entities like pub/subs, since
41
+ // they do own the underlying rmw entities, which are destroyed
42
+ // on their rclcpp destructors, thus no risk of dangling pointers.
43
clear_on_ready_callback();
44
45
if (rcl_event_fini(&event_handle_) != RCL_RET_OK) {
0 commit comments