Added delete[] to VectorNBW<bool> destructor

This commit is contained in:
Andrea Maggiordomo 2019-03-25 13:01:44 +01:00
parent 624c15e390
commit 011764d5b2
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ template <>
class VectorNBW<bool>{
public:
VectorNBW():data(0),datasize(0),datareserve(0){}
~VectorNBW() {
if (data)
delete[] data;
}
bool * data ;
void reserve (const int & sz) {