aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cine/object.cpp')
-rw-r--r--engines/cine/object.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/cine/object.cpp b/engines/cine/object.cpp
index eafd197d53..89a0d6bb35 100644
--- a/engines/cine/object.cpp
+++ b/engines/cine/object.cpp
@@ -61,11 +61,11 @@ void loadObject(char *pObjectName) {
uint16 numEntry;
uint16 entrySize;
uint16 i;
- byte *ptr;
+ byte *ptr, *dataPtr;
checkDataDisk(-1);
- ptr = readBundleFile(findFileInBundle(pObjectName));
+ ptr = dataPtr = readBundleFile(findFileInBundle(pObjectName));
setMouseCursor(MOUSE_CURSOR_DISK);
@@ -95,6 +95,8 @@ void loadObject(char *pObjectName) {
objectTable[i].costume = 0;
}
}
+
+ free(dataPtr);
}
int8 removeOverlayElement(uint16 objIdx, uint16 param) {