diff options
author | Max Horn | 2009-05-04 15:04:39 +0000 |
---|---|---|
committer | Max Horn | 2009-05-04 15:04:39 +0000 |
commit | 689511a56f4af2ef5f6ac2b1403f9146de985abc (patch) | |
tree | b33bffbfd3dabae4c5fdf53b2fd502642035cd88 | |
parent | 3cf4d1d71a5217a1112494e5edf2b8728f05a04f (diff) | |
download | scummvm-rg350-689511a56f4af2ef5f6ac2b1403f9146de985abc.tar.gz scummvm-rg350-689511a56f4af2ef5f6ac2b1403f9146de985abc.tar.bz2 scummvm-rg350-689511a56f4af2ef5f6ac2b1403f9146de985abc.zip |
COMMON: Made Array::resize() init/zero the memory it allocates
svn-id: r40304
-rw-r--r-- | common/array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/array.h b/common/array.h index ace5ce7e4b..547b1a6b6f 100644 --- a/common/array.h +++ b/common/array.h @@ -195,7 +195,7 @@ public: T *old_storage = _storage; _capacity = newCapacity; - _storage = new T[newCapacity]; + _storage = new T[newCapacity](); assert(_storage); if (old_storage) { |