aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/dataLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/dataLoader.cpp')
-rw-r--r--engines/cruise/dataLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cruise/dataLoader.cpp b/engines/cruise/dataLoader.cpp
index 78aa2cc62d..ec3c42ee46 100644
--- a/engines/cruise/dataLoader.cpp
+++ b/engines/cruise/dataLoader.cpp
@@ -58,7 +58,7 @@ void decodeGfxUnified(dataFileEntry *pCurrentFileEntry, int16 format) {
error("Unkown gfx format %d", format);
}
- uint8 *buffer = (uint8 *)malloc(spriteSize);
+ uint8 *buffer = (uint8 *)MemAlloc(spriteSize);
// Perform format specific decoding
switch (format) {
@@ -131,7 +131,7 @@ void decodeGfxUnified(dataFileEntry *pCurrentFileEntry, int16 format) {
}
}
- free(pCurrentFileEntry->subData.ptr);
+ MemFree(pCurrentFileEntry->subData.ptr);
pCurrentFileEntry->subData.ptr = buffer;
}