From 60e75d8243944ff52243a0b61129d972e4ea2a5f Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 8 May 2015 16:14:18 -0700 Subject: [PATCH] Fix for potential double-free crash --- UVAtlas/isochart/mergecharts.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UVAtlas/isochart/mergecharts.cpp b/UVAtlas/isochart/mergecharts.cpp index 1e16fb9..3f14e64 100644 --- a/UVAtlas/isochart/mergecharts.cpp +++ b/UVAtlas/isochart/mergecharts.cpp @@ -115,7 +115,11 @@ void CIsochartMesh::ReleaseAllNewCharts( { for (size_t i=0; iIsInitChart() ) + { + delete pChart; + } } children.clear(); }