mirror of
https://github.com/microsoft/UVAtlas
synced 2024-09-19 14:20:00 +00:00
Fix for potential double-free crash
This commit is contained in:
parent
99052d091a
commit
60e75d8243
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user