diff --git a/libsrc/geom2d/geometry2d.hpp b/libsrc/geom2d/geometry2d.hpp index 26fea07e..15e9e80d 100644 --- a/libsrc/geom2d/geometry2d.hpp +++ b/libsrc/geom2d/geometry2d.hpp @@ -48,6 +48,10 @@ namespace netgen layer = 1; } + ~SplineSegExt () + { + delete &seg; + } virtual const GeomPoint<2> & StartPI () const { diff --git a/libsrc/interface/nginterface.cpp b/libsrc/interface/nginterface.cpp index 39de530e..ff034ded 100644 --- a/libsrc/interface/nginterface.cpp +++ b/libsrc/interface/nginterface.cpp @@ -109,7 +109,7 @@ namespace netgen // global variable mesh (should not be used in libraries) AutoPtr mesh; - NetgenGeometry * ng_geometry = new NetgenGeometry; + NetgenGeometry * ng_geometry = NULL; // new NetgenGeometry; // extern NetgenGeometry * ng_geometry; // extern AutoPtr mesh;