diff options
Diffstat (limited to 'CPP/Common/Buffer.h')
-rwxr-xr-x | CPP/Common/Buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CPP/Common/Buffer.h b/CPP/Common/Buffer.h index 0b8ac804..78a68a6d 100755 --- a/CPP/Common/Buffer.h +++ b/CPP/Common/Buffer.h @@ -10,13 +10,13 @@ template <class T> class CBuffer protected: size_t _capacity; T *_items; +public: void Free() { delete []_items; _items = 0; _capacity = 0; } -public: CBuffer(): _capacity(0), _items(0) {}; CBuffer(const CBuffer &buffer): _capacity(0), _items(0) { *this = buffer; } CBuffer(size_t size): _items(0), _capacity(0) { SetCapacity(size); } |