1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Ensured that a virtual destructor is declared, so that the various automatically-generated real constructors get in on the action.

This commit is contained in:
Thomas Harte 2017-08-11 12:07:48 -04:00
parent 4785e316ff
commit 1d8edf58dd
2 changed files with 4 additions and 0 deletions

View File

@ -881,3 +881,5 @@ using namespace AmstradCPC;
Machine *Machine::AmstradCPC() {
return new AmstradCPC::ConcreteMachine;
}
Machine::~Machine() {}

View File

@ -52,6 +52,8 @@ class Machine:
public ConfigurationTarget::Machine,
public KeyboardMachine::Machine {
public:
virtual ~Machine();
/// Creates an returns an Amstrad CPC on the heap.
static Machine *AmstradCPC();