Merge pull request #1578 from pbrod/Fix_issue1577_memory_leak

Fixes issue #1577: possible memory leak
This commit is contained in:
Robin Dunn
2020-03-27 13:22:35 -07:00
committed by GitHub

View File

@@ -141,12 +141,13 @@ pdcDrawPolyPolygonOp::pdcDrawPolyPolygonOp(int n, int count[], wxPoint points[],
pdcDrawPolyPolygonOp::~pdcDrawPolyPolygonOp()
{
if (m_points) delete m_points;
if (m_count) delete m_count;
if (m_points) delete[] m_points;
if (m_count) delete[] m_count;
m_points=NULL;
m_count=NULL;
}
// ----------------------------------------------------------------------------
// pdcDrawLinesOp
// ----------------------------------------------------------------------------