Fix for potential double-free crash

This commit is contained in:
Chuck Walbourn 2015-05-08 16:14:18 -07:00
parent 99052d091a
commit 60e75d8243

View File

@ -115,7 +115,11 @@ void CIsochartMesh::ReleaseAllNewCharts(
{
for (size_t i=0; i<children.size(); i++)
{
delete children[i];
auto* pChart = children[i];
if ( pChart && !pChart->IsInitChart() )
{
delete pChart;
}
}
children.clear();
}