aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/background.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/background.cpp')
-rw-r--r--engines/cruise/background.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cruise/background.cpp b/engines/cruise/background.cpp
index 587c790554..cd4e64384b 100644
--- a/engines/cruise/background.cpp
+++ b/engines/cruise/background.cpp
@@ -107,7 +107,7 @@ int loadBackground(const char *name, int idx) {
ptrToFree = gfxModuleData.pPage10;
if (loadFileSub1(&ptrToFree, name, NULL) < 0) {
if (ptrToFree != gfxModuleData.pPage10)
- free(ptrToFree);
+ MemFree(ptrToFree);
return (-18);
}