mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 00:45:10 +00:00
COMMON: Made Array::resize() init/zero the memory it allocates
svn-id: r40304
This commit is contained in:
parent
3cf4d1d71a
commit
689511a56f
@ -195,7 +195,7 @@ public:
|
||||
|
||||
T *old_storage = _storage;
|
||||
_capacity = newCapacity;
|
||||
_storage = new T[newCapacity];
|
||||
_storage = new T[newCapacity]();
|
||||
assert(_storage);
|
||||
|
||||
if (old_storage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user