summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-24 21:56:16 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-03-24 21:56:16 +0000
commit7a135e058ab0f7c903b6b48375a0141a8cc81004 (patch)
treee3d3cdd869baa2ecab6b5709ab96b45d7c562687 /src/lib
parentb52f668f136fb8cfa1ae8ed81533b73655d51cb9 (diff)
do not use osd_malloc/osd_free in non-OSD code (nw)
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/formats/apridisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/formats/apridisk.c b/src/lib/formats/apridisk.c
index e331607405d..79022f7829c 100644
--- a/src/lib/formats/apridisk.c
+++ b/src/lib/formats/apridisk.c
@@ -176,7 +176,7 @@ FLOPPY_CONSTRUCT( apridisk_construct )
}
else if (compression == APR_COMPRESSED)
{
- UINT8 *buffer = (UINT8 *)osd_malloc(data_size * sizeof(UINT8));
+ UINT8 *buffer = (UINT8 *)global_alloc(data_size * sizeof(UINT8));
UINT16 length;
UINT8 value;
@@ -185,7 +185,7 @@ FLOPPY_CONSTRUCT( apridisk_construct )
length = pick_integer_le(buffer, 0, 2);
value = pick_integer_le(buffer, 2, 1);
- osd_free(buffer);
+ global_free(buffer);
/* not sure if this is possible */
if (length != 512) {