aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-05-04 14:20:17 +0000
committerMax Horn2009-05-04 14:20:17 +0000
commitc33a875d9f46792f10cc66d8ac68623ed81f1cb2 (patch)
tree99651538dc12d47718654609a29f523e810557e4
parent5450bf66306eca53024076c8ffdd0eeb45db423d (diff)
downloadscummvm-rg350-c33a875d9f46792f10cc66d8ac68623ed81f1cb2.tar.gz
scummvm-rg350-c33a875d9f46792f10cc66d8ac68623ed81f1cb2.tar.bz2
scummvm-rg350-c33a875d9f46792f10cc66d8ac68623ed81f1cb2.zip
Fixed new[] / delete mismatch in Common::String
svn-id: r40302
-rw-r--r--common/str.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/str.cpp b/common/str.cpp
index abe0ab6650..3a3b1e610c 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -216,7 +216,7 @@ void String::decRefCount(int *oldRefCount) {
assert(g_refCountPool);
g_refCountPool->freeChunk(oldRefCount);
}
- delete _str;
+ delete[] _str;
// Even though _str points to a freed memory block now,
// we do not change its value, because any code that calls