Added delete[] to VectorNBW<bool> destructor
This commit is contained in:
parent
624c15e390
commit
011764d5b2
|
@ -44,6 +44,12 @@ template <>
|
||||||
class VectorNBW<bool>{
|
class VectorNBW<bool>{
|
||||||
public:
|
public:
|
||||||
VectorNBW():data(0),datasize(0),datareserve(0){}
|
VectorNBW():data(0),datasize(0),datareserve(0){}
|
||||||
|
|
||||||
|
~VectorNBW() {
|
||||||
|
if (data)
|
||||||
|
delete[] data;
|
||||||
|
}
|
||||||
|
|
||||||
bool * data ;
|
bool * data ;
|
||||||
|
|
||||||
void reserve (const int & sz) {
|
void reserve (const int & sz) {
|
||||||
|
|
Loading…
Reference in New Issue