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
이 커밋은 다음에 포함됨:
@@ -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;
|
||||
|
||||
새 이슈에서 참조
사용자 차단