summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-10-13 22:08:44 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-10-13 22:08:44 -0400
commitf2990290781235161149db6c2be4dce935b2dd01 (patch)
tree0d4148680573309c734d13db74a4ac8284906f47
parent9308ed99dcf4db9a6a0ff3ea6b423a6be0ba32bf (diff)
distate: Polymorphic classes need virtual destructors (nw)
-rw-r--r--src/emu/distate.cpp9
-rw-r--r--src/emu/distate.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/distate.cpp b/src/emu/distate.cpp
index 34833a72979..71462ce3275 100644
--- a/src/emu/distate.cpp
+++ b/src/emu/distate.cpp
@@ -86,6 +86,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
//-------------------------------------------------
diff --git a/src/emu/distate.h b/src/emu/distate.h
index 80ead0c3463..a2cfcecb4c5 100644
--- a/src/emu/distate.h
+++ b/src/emu/distate.h
@@ -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