diff options
author | Torbjörn Andersson | 2016-06-08 06:35:29 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-06-08 06:35:29 +0200 |
commit | 245ae4011b589a1c6298c7ee8d21f9cd1df07b85 (patch) | |
tree | 49747d7ecee325eaadbffebde60dfd94629bcbbd | |
parent | ffdb0d56651dac4dfcac19b408c58f72685cd301 (diff) | |
download | scummvm-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.h | 2 |
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; } } |