mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
fixing mem-leak
This commit is contained in:
parent
60843c9bf0
commit
3c150dfa73
@ -48,6 +48,10 @@ namespace netgen
|
||||
layer = 1;
|
||||
}
|
||||
|
||||
~SplineSegExt ()
|
||||
{
|
||||
delete &seg;
|
||||
}
|
||||
|
||||
virtual const GeomPoint<2> & StartPI () const
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ namespace netgen
|
||||
|
||||
// global variable mesh (should not be used in libraries)
|
||||
AutoPtr<Mesh> mesh;
|
||||
NetgenGeometry * ng_geometry = new NetgenGeometry;
|
||||
NetgenGeometry * ng_geometry = NULL; // new NetgenGeometry;
|
||||
|
||||
// extern NetgenGeometry * ng_geometry;
|
||||
// extern AutoPtr<Mesh> mesh;
|
||||
|
Loading…
Reference in New Issue
Block a user