diff options
author | Olivier Galibert <galibert@pobox.com> | 2020-11-15 13:27:48 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2020-11-15 13:28:00 +0100 |
commit | 2ec01d1901db46e5c3fa2d518f7220bf9e5a9154 (patch) | |
tree | 08f2931a2b9eb719929c7889518070b870bb470e /src/devices | |
parent | 27309ec9449d1ef886314bd59ac57aa5172f3038 (diff) |
Fix memory leak on address_space_specific destruction and add a missing init [O. Galibert]
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/machine/k054321.cpp | 5 | ||||
-rw-r--r-- | src/devices/machine/k054321.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/devices/machine/k054321.cpp b/src/devices/machine/k054321.cpp index e5621f4f789..6a362f655b2 100644 --- a/src/devices/machine/k054321.cpp +++ b/src/devices/machine/k054321.cpp @@ -85,6 +85,11 @@ void k054321_device::device_start() save_item(NAME(m_active)); } +void k054321_device::device_reset() +{ + m_volume = 0; +} + void k054321_device::device_add_mconfig(machine_config &config) { for (int i = 0; i < 3; i++) diff --git a/src/devices/machine/k054321.h b/src/devices/machine/k054321.h index f5d9b65ea25..6c66659372d 100644 --- a/src/devices/machine/k054321.h +++ b/src/devices/machine/k054321.h @@ -26,6 +26,7 @@ public: protected: void device_start() override; + void device_reset() override; virtual void device_add_mconfig(machine_config &config) override; private: |