Skip to content

Commit c9c4253

Browse files
committed
Make sure the Waitable class has a virtual destructor.
Noticed while reviewing this issue. Signed-off-by: Chris Lalancette <[email protected]>
1 parent 5632fa0 commit c9c4253

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rclcpp/include/rclcpp/waitable.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class Waitable
3030
public:
3131
RCLCPP_SMART_PTR_DEFINITIONS_NOT_COPYABLE(Waitable)
3232

33+
RCLCPP_PUBLIC
34+
virtual ~Waitable() = default;
35+
3336
/// Get the number of ready subscriptions
3437
/**
3538
* Returns a value of 0 by default.

0 commit comments

Comments
 (0)