netlist.cpp: Fix a crash if an exception happened during validation.

This commit is contained in:
couriersud 2020-07-28 20:41:30 +02:00
parent ffb37e9ae8
commit af3118d0f1

View File

@ -1086,7 +1086,8 @@ void netlist_mame_device::device_reset()
void netlist_mame_device::device_stop()
{
LOGDEVCALLS("device_stop\n");
netlist().exec().stop();
if (m_netlist)
m_netlist->exec().stop();
}
void netlist_mame_device::device_post_load()