aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/array.h2
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. */