diff --git a/vcg/container/simple_temporary_data.h b/vcg/container/simple_temporary_data.h index 0e861edf..2c62e829 100644 --- a/vcg/container/simple_temporary_data.h +++ b/vcg/container/simple_temporary_data.h @@ -44,6 +44,12 @@ template <> class VectorNBW{ public: VectorNBW():data(0),datasize(0),datareserve(0){} + + ~VectorNBW() { + if (data) + delete[] data; + } + bool * data ; void reserve (const int & sz) {