summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/2203intf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/2203intf.cpp')
-rw-r--r--src/devices/sound/2203intf.cpp3
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);
}
//-------------------------------------------------