mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
flopimg: Avoid avoidable leaks [O. Galibert]
This commit is contained in:
parent
f50fe16044
commit
23936afefc
@ -992,8 +992,8 @@ floppy_image::floppy_image(int _tracks, int _heads, UINT32 _form_factor)
|
||||
|
||||
floppy_image::~floppy_image()
|
||||
{
|
||||
for (int i=0;i<tracks;i++) {
|
||||
for (int j=0;j<heads;j++) {
|
||||
for (int i=0;i<MAX_FLOPPY_TRACKS;i++) {
|
||||
for (int j=0;j<MAX_FLOPPY_HEADS;j++) {
|
||||
global_free(cell_data[i][j]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user