From Gill Peacegood, "fix for a memory leak in the DelaunayConstraint class"
This commit is contained in:
parent
4493cc817d
commit
2e41e3f656
@ -95,7 +95,7 @@ public:
|
||||
void handleOverlaps(void);
|
||||
|
||||
protected:
|
||||
virtual ~DelaunayConstraint() {}
|
||||
virtual ~DelaunayConstraint();
|
||||
|
||||
typedef std::vector< int* > trilist; // array of indices in points array defining triangles
|
||||
|
||||
|
@ -1372,4 +1372,13 @@ void DelaunayConstraint::handleOverlaps(void)
|
||||
tscx->retessellatePolygons(*this); // find all edges
|
||||
}
|
||||
|
||||
DelaunayConstraint::~DelaunayConstraint()
|
||||
{
|
||||
trilist::const_iterator ti;
|
||||
for (ti=_interiorTris.begin(); ti!=_interiorTris.end(); ++ti)
|
||||
{
|
||||
delete[] *ti;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace osgutil
|
||||
|
Loading…
Reference in New Issue
Block a user