Add virtual destructor to device::Settings

Add virtual destructor to device::Settings since derived classes are
allocated, but are deleted using the base class. This ensures the
descructors of the derived clsses will be executed if present.

Change-Id: I1f974b986193c60128009a768ec6b01b9deeacd5
이 커밋은 다음에 포함됨:
Tony Tye
2021-01-10 00:12:54 +00:00
부모 a8d7e59dff
커밋 77268b2e60
+4
파일 보기
@@ -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<uint64_t>(1) << name)) ? true : false;