running an unavailable game with discrete sound would crash mame on exit because m_queue was uninitialized (still crashes on debug build tho?)

This commit is contained in:
Michaël Banaan Ananas 2011-03-10 20:08:29 +00:00
parent edef6e8203
commit 79c1cfc1e0

View File

@ -888,7 +888,10 @@ discrete_sound_device::discrete_sound_device(running_machine &_machine, const di
discrete_device::~discrete_device(void)
{
osd_work_queue_free(m_queue);
if (m_queue)
{
osd_work_queue_free(m_queue);
}
if (m_profiling)
{