ym2203: Avoid crash if MAME fatalerrors

This commit is contained in:
Dirk Best 2017-05-21 21:40:25 +02:00
parent 11875e315f
commit 459dd62d39

View File

@ -111,7 +111,8 @@ void ym2203_device::calculate_rates()
void ym2203_device::device_stop() void ym2203_device::device_stop()
{ {
ym2203_shutdown(m_chip); if (m_chip)
ym2203_shutdown(m_chip);
} }
//------------------------------------------------- //-------------------------------------------------