COMMON: Made Array::resize() init/zero the memory it allocates

svn-id: r40304
This commit is contained in:
Max Horn 2009-05-04 15:04:39 +00:00
parent 3cf4d1d71a
commit 689511a56f

View File

@ -195,7 +195,7 @@ public:
T *old_storage = _storage;
_capacity = newCapacity;
_storage = new T[newCapacity];
_storage = new T[newCapacity]();
assert(_storage);
if (old_storage) {