aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/seg_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/seg_manager.cpp b/engines/sci/engine/seg_manager.cpp
index 35297cb077..81de171cb2 100644
--- a/engines/sci/engine/seg_manager.cpp
+++ b/engines/sci/engine/seg_manager.cpp
@@ -264,6 +264,7 @@ int SegManager::deallocate(int seg, bool recursive) {
free(str->name);
str->name = NULL;
+ // FIXME: this corrupts the heap for some reason
free(str->value);
str->value = NULL;