diff options
author | Dirk Best <mail@dirk-best.de> | 2017-05-21 21:40:25 +0200 |
---|---|---|
committer | Dirk Best <mail@dirk-best.de> | 2017-05-21 23:21:08 +0200 |
commit | 459dd62d3974262f0bb21865d0fc6b9435b28455 (patch) | |
tree | 716f084b06f4cfc9f33724ee6a779217e277b178 | |
parent | 11875e315f9e14fe40c759fd1858d967b905eb90 (diff) |
ym2203: Avoid crash if MAME fatalerrors
-rw-r--r-- | src/devices/sound/2203intf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/sound/2203intf.cpp b/src/devices/sound/2203intf.cpp index 32f5612607a..3307e8b798d 100644 --- a/src/devices/sound/2203intf.cpp +++ b/src/devices/sound/2203intf.cpp @@ -111,7 +111,8 @@ void ym2203_device::calculate_rates() void ym2203_device::device_stop() { - ym2203_shutdown(m_chip); + if (m_chip) + ym2203_shutdown(m_chip); } //------------------------------------------------- |