From 0b0d1220476a1c82d03653fc0dda617d82f78c73 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 22 Nov 2018 00:54:22 +0100 Subject: [PATCH] tf2_ros: add virtual destructor to tf2_ros::BufferInterface --- tf2_ros/include/tf2_ros/buffer_interface.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tf2_ros/include/tf2_ros/buffer_interface.h b/tf2_ros/include/tf2_ros/buffer_interface.h index 92150087d..38db159ce 100644 --- a/tf2_ros/include/tf2_ros/buffer_interface.h +++ b/tf2_ros/include/tf2_ros/buffer_interface.h @@ -48,6 +48,10 @@ namespace tf2_ros class BufferInterface { public: + /** \brief Virtual destructor. + * Every class that has virtual methods should have one. + */ + virtual ~BufferInterface() {} /** \brief Get the transform between two frames by frame ID. * \param target_frame The frame to which data should be transformed