aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo/object.cpp')
-rw-r--r--engines/hugo/object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/hugo/object.cpp b/engines/hugo/object.cpp
index 6aec9d1378..14585f0cd7 100644
--- a/engines/hugo/object.cpp
+++ b/engines/hugo/object.cpp
@@ -218,6 +218,8 @@ void ObjectHandler::freeObjects() {
object_t *obj = &_objects[i];
for (int j = 0; j < obj->seqNumb; j++) { // for each sequence
seq_t *seq = obj->seqList[j].seqPtr; // Free image
+ if (obj->currImagePtr!= 0)
+ free(obj->currImagePtr);
if (seq == 0) // Failure during database load
break;
do {