mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
flopimg: don't trash a bunch of memory when loading legacy floppies. [R. Belmont]
This commit is contained in:
parent
2ddc0ff006
commit
23eddd0440
@ -77,7 +77,7 @@ static floppy_image_legacy *floppy_init(void *fp, const struct io_procs *procs,
|
||||
{
|
||||
floppy_image_legacy *floppy;
|
||||
|
||||
floppy = (floppy_image_legacy *)malloc(sizeof(floppy_image));
|
||||
floppy = (floppy_image_legacy *)malloc(sizeof(floppy_image_legacy));
|
||||
if (!floppy)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user