mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Fixed a newly introduced memory leak into the Clipper library,
made all Clipper interfaces non-virtual.
This commit is contained in:
parent
4426e47e2a
commit
336f86c101
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue