diff options
-rw-r--r-- | common/str.cpp | 2 |
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 |