mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Fix memory leak. (nw)
This commit is contained in:
parent
379799b16e
commit
ecdbd22320
@ -129,6 +129,7 @@ netlist_mame_logic_input_t::netlist_mame_logic_input_t(const machine_config &mco
|
||||
void netlist_mame_logic_input_t::static_set_params(device_t &device, const char *param_name, const UINT32 mask, const UINT32 shift)
|
||||
{
|
||||
netlist_mame_logic_input_t &netlist = downcast<netlist_mame_logic_input_t &>(device);
|
||||
LOG_DEV_CALLS(("static_set_params %s\n", device.tag()));
|
||||
netlist.m_param_name = param_name;
|
||||
netlist.m_shift = shift;
|
||||
netlist.m_mask = mask;
|
||||
|
@ -114,7 +114,7 @@ public:
|
||||
// construction/destruction
|
||||
netlist_mame_device_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
netlist_mame_device_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *file);
|
||||
virtual ~netlist_mame_device_t() {}
|
||||
virtual ~netlist_mame_device_t() { pstring::resetmem(); }
|
||||
|
||||
static void static_set_constructor(device_t &device, void (*setup_func)(netlist::setup_t &));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user