mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 01:46:42 +00:00
COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
svn-id: r40326
This commit is contained in:
parent
c36694764d
commit
61dcaad888
@ -71,6 +71,8 @@ public:
|
||||
|
||||
~Array() {
|
||||
delete[] _storage;
|
||||
_storage = 0;
|
||||
_capacity = _size = 0;
|
||||
}
|
||||
|
||||
/** Appends element to the end of the array. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user