diff --git a/rocclr/device/device.hpp b/rocclr/device/device.hpp index 7413032b61..e5d4e55fb2 100644 --- a/rocclr/device/device.hpp +++ b/rocclr/device/device.hpp @@ -609,6 +609,10 @@ class Settings : public amd::HeapObject { //! Default constructor Settings(); + //! Virtual destructor as this class is used as a base class and is also used + //! to delete the derived classes. + virtual ~Settings() {}; + //! Check the specified extension bool checkExtension(uint name) const { return (extensions_ & (static_cast(1) << name)) ? true : false;