diff --git a/include/moveit_task_constructor/stage.h b/include/moveit_task_constructor/stage.h index 0dba24a3..a11a1ecc 100644 --- a/include/moveit_task_constructor/stage.h +++ b/include/moveit_task_constructor/stage.h @@ -67,7 +67,7 @@ class Stage { public: PRIVATE_CLASS(Stage) typedef std::unique_ptr pointer; - ~Stage(); + virtual ~Stage(); /// auto-convert Stage to StagePrivate* when needed operator StagePrivate*(); diff --git a/src/stage_p.h b/src/stage_p.h index 0ac42a9b..b5c410d5 100644 --- a/src/stage_p.h +++ b/src/stage_p.h @@ -34,6 +34,7 @@ class StagePrivate { public: typedef std::list container_type; StagePrivate(Stage* me, const std::string& name); + virtual ~StagePrivate() = default; InterfaceFlags interfaceFlags() const;