aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/world.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/world.cpp')
-rw-r--r--engines/wage/world.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index 7a15b9314a..c525bd33cc 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -363,9 +363,12 @@ Common::String *World::loadStringFromDITL(Common::MacResManager *resMan, int res
Common::String message = readPascalString(res);
if (i == itemIndex) {
Common::String *msg = new Common::String(message);
+ delete res;
return msg;
}
}
+
+ delete res;
}
return NULL;