diff options
author | Max Horn | 2009-05-05 12:29:15 +0000 |
---|---|---|
committer | Max Horn | 2009-05-05 12:29:15 +0000 |
commit | 61dcaad8886c9e1ced630eeab364f59cd27a4657 (patch) | |
tree | 9076a244950e3ae48e28a553f158e0029720b778 | |
parent | c36694764de80af0fe65005599ce5ad91a12398d (diff) | |
download | scummvm-rg350-61dcaad8886c9e1ced630eeab364f59cd27a4657.tar.gz scummvm-rg350-61dcaad8886c9e1ced630eeab364f59cd27a4657.tar.bz2 scummvm-rg350-61dcaad8886c9e1ced630eeab364f59cd27a4657.zip |
COMMON: Changed Array destructor to reset _storage and _size to 0 -- this helps to find 'Array used after being disposed' bugs
svn-id: r40326
-rw-r--r-- | common/array.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/array.h b/common/array.h index 547b1a6b6f..bf7aca4154 100644 --- a/common/array.h +++ b/common/array.h @@ -71,6 +71,8 @@ public: ~Array() { delete[] _storage; + _storage = 0; + _capacity = _size = 0; } /** Appends element to the end of the array. */ |