diff --git a/libsrc/general/array.hpp b/libsrc/general/array.hpp index 40b6048d..d7eeee34 100644 --- a/libsrc/general/array.hpp +++ b/libsrc/general/array.hpp @@ -371,7 +371,7 @@ namespace netgen /// array copy ArrayMem & operator= (const FlatArray & a2) { - SetSize (a2.Size()); + this->SetSize (a2.Size()); for (int i = 0; i < size; i++) (*this)[i] = a2[i]; return *this; diff --git a/libsrc/general/dynamicmem.cpp b/libsrc/general/dynamicmem.cpp index 56fb1182..ec58b3d4 100644 --- a/libsrc/general/dynamicmem.cpp +++ b/libsrc/general/dynamicmem.cpp @@ -38,6 +38,7 @@ namespace netgen void BaseDynamicMem :: SetName (const char * aname) { delete [] name; + name = NULL; if (aname) { name = new char[strlen(aname)+1];