diff options
author | 2013-02-03 17:09:57 +0000 | |
---|---|---|
committer | 2013-02-03 17:09:57 +0000 | |
commit | 51af5b7f1d1b42fea0510b4baa703b08e72f1910 (patch) | |
tree | bc3a48d4f8beee2a4b171bce01a5ccce6b1493b4 /src/emu/imagedev | |
parent | e2eaf6bc01d967619504052401e251311e7a3dac (diff) |
(MESS) Properly close the old image when swapping CHD-CDs [Steve Leung]
Diffstat (limited to 'src/emu/imagedev')
-rw-r--r-- | src/emu/imagedev/chd_cd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/imagedev/chd_cd.c b/src/emu/imagedev/chd_cd.c index a8a98ccdbe9..8db02a40b66 100644 --- a/src/emu/imagedev/chd_cd.c +++ b/src/emu/imagedev/chd_cd.c @@ -101,6 +101,8 @@ void cdrom_image_device::device_stop() { if (m_cdrom_handle) cdrom_close(m_cdrom_handle); + if( m_self_chd.opened() ) + m_self_chd.close(); } bool cdrom_image_device::call_load() @@ -148,4 +150,6 @@ void cdrom_image_device::call_unload() assert(m_cdrom_handle); cdrom_close(m_cdrom_handle); m_cdrom_handle = NULL; + if( m_self_chd.opened() ) + m_self_chd.close(); } |