diff options
author | 2007-12-31 01:57:54 +0000 | |
---|---|---|
committer | 2007-12-31 01:57:54 +0000 | |
commit | d7e58ce2d094d1990abbd8ac96f6a0600855d34a (patch) | |
tree | 81c6c820686f9745673125db305181cb398ded6a /src/emu/machine/53c810.c | |
parent | 1ea08b693342d1dc60ecdbd40888186ed5299cf7 (diff) |
(From Oliver Stoneberg)
Fixed several memory leaks related to SCSI CD emulation.
Diffstat (limited to 'src/emu/machine/53c810.c')
-rw-r--r-- | src/emu/machine/53c810.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/emu/machine/53c810.c b/src/emu/machine/53c810.c index 8c182413843..4ccd1c16543 100644 --- a/src/emu/machine/53c810.c +++ b/src/emu/machine/53c810.c @@ -698,6 +698,16 @@ extern void lsi53c810_init(const struct LSI53C810interface *interface) } } +extern void lsi53c810_exit(const struct LSI53C810interface *interface) +{ + int i; + + for (i = 0; i < interface->scsidevs->devs_present; i++) + { + SCSIDeleteInstance( devices[interface->scsidevs->devices[i].scsiID] ); + } +} + void lsi53c810_read_data(int bytes, UINT8 *pData) { if (devices[last_id]) |