Fixed a newly introduced memory leak into the Clipper library,

made all Clipper interfaces non-virtual.
This commit is contained in:
bubnikv 2017-03-08 20:27:03 +01:00
parent 4426e47e2a
commit 336f86c101
2 changed files with 6 additions and 4 deletions

View file

@ -1356,6 +1356,8 @@ void Clipper::DisposeAllOutRecs()
{
for (OutPt *pts : m_OutPts)
delete[] pts;
for (OutRec *rec : m_PolyOuts)
delete rec;
m_OutPts.clear();
m_OutPtsFree = nullptr;
m_OutPtsChunkLast = m_OutPtsChunkSize;