diff options
Diffstat (limited to 'Common/Vector.cpp')
-rwxr-xr-x | Common/Vector.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Common/Vector.cpp b/Common/Vector.cpp index cb3d8752..b3dd70a5 100755 --- a/Common/Vector.cpp +++ b/Common/Vector.cpp @@ -7,7 +7,16 @@ #include "Vector.h" CBaseRecordVector::~CBaseRecordVector() - { delete []((unsigned char *)_items); } + { Free(); } + +void CBaseRecordVector::Free() +{ + delete []((unsigned char *)_items); + _capacity = 0; + _size = 0; + _items = 0; +} + void CBaseRecordVector::Clear() { DeleteFrom(0); } void CBaseRecordVector::DeleteBack() |