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