changed destructors to prevent crash on exit (nw)

This commit is contained in:
Miodrag Milanovic 2014-03-12 12:21:09 +00:00
parent f7c49a5019
commit b3ba4a4649
3 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public:
// construction/destruction
nubus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
nubus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
~nubus_device() { m_device_list.detach_all(); }
// inline configuration
static void static_set_cputag(device_t &device, const char *tag);

View File

@ -159,6 +159,7 @@ class s100_device : public device_t,
public:
// construction/destruction
s100_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~s100_device() { m_device_list.detach_all(); }
void add_s100_card(device_s100_card_interface *card);

View File

@ -108,6 +108,7 @@ class wangpcbus_device : public device_t,
public:
// construction/destruction
wangpcbus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
~wangpcbus_device() { m_device_list.detach_all(); }
void add_wangpcbus_card(device_wangpcbus_card_interface *card, int sid);