diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-03-28 15:32:15 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-03-28 15:32:15 +0000 |
commit | f963d0bcd73fba69112e529071ef7507d29c7584 (patch) | |
tree | 9cfb517f49d7e7bef2299e3003b9d1e85794b914 /src/mess/drivers/binbug.c | |
parent | 513738066d94b89185222f997fd0c715acc72d5f (diff) |
replaced some more malloc/free usage with global_alloc_array/global_free_array (nw)
Diffstat (limited to 'src/mess/drivers/binbug.c')
-rw-r--r-- | src/mess/drivers/binbug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mess/drivers/binbug.c b/src/mess/drivers/binbug.c index 3b6a1d14c0a..00878720841 100644 --- a/src/mess/drivers/binbug.c +++ b/src/mess/drivers/binbug.c @@ -246,7 +246,7 @@ QUICKLOAD_LOAD_MEMBER( binbug_state, binbug ) } else { - quick_data = (UINT8*)malloc(quick_length); + quick_data = global_alloc_array(UINT8, quick_length); if (!quick_data) { image.seterror(IMAGE_ERROR_INVALIDIMAGE, "Cannot open file"); @@ -290,7 +290,7 @@ QUICKLOAD_LOAD_MEMBER( binbug_state, binbug ) } } - free( quick_data ); + global_free_array(quick_data); } return result; |