aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-06-08 06:35:29 +0200
committerTorbjörn Andersson2016-06-08 06:35:29 +0200
commit245ae4011b589a1c6298c7ee8d21f9cd1df07b85 (patch)
tree49747d7ecee325eaadbffebde60dfd94629bcbbd
parentffdb0d56651dac4dfcac19b408c58f72685cd301 (diff)
downloadscummvm-rg350-245ae4011b589a1c6298c7ee8d21f9cd1df07b85.tar.gz
scummvm-rg350-245ae4011b589a1c6298c7ee8d21f9cd1df07b85.tar.bz2
scummvm-rg350-245ae4011b589a1c6298c7ee8d21f9cd1df07b85.zip
SCUMM HE: Fix Moonbase delete vs delete[] Valgrind warning
-rw-r--r--engines/scumm/he/moonbase/ai_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/he/moonbase/ai_types.h b/engines/scumm/he/moonbase/ai_types.h
index e2de87d653..bb16a737e9 100644
--- a/engines/scumm/he/moonbase/ai_types.h
+++ b/engines/scumm/he/moonbase/ai_types.h
@@ -72,7 +72,7 @@ public:
AIEntity(int id);
~AIEntity() {
if (_nameString) {
- delete _nameString;
+ delete[] _nameString;
_nameString = 0;
}
}