distate: Polymorphic classes need virtual destructors (nw)

This commit is contained in:
AJR 2017-10-13 22:08:44 -04:00
parent 9308ed99dc
commit f299029078
2 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,15 @@ device_state_entry::device_state_entry(int index, device_state_interface *dev)
}
//-------------------------------------------------
// device_state_entry - destructor
//-------------------------------------------------
device_state_entry::~device_state_entry()
{
}
//-------------------------------------------------
// formatstr - specify a format string
//-------------------------------------------------

View File

@ -48,6 +48,7 @@ public:
// construction/destruction
device_state_entry(int index, const char *symbol, u8 size, u64 sizemask, u8 flags, device_state_interface *dev);
device_state_entry(int index, device_state_interface *dev);
virtual ~device_state_entry();
public:
// post-construction modifiers