Coverity findings: fix resource leak in PlyLoader.cpp.

pull/735/head
Kim Kulling 2015-12-30 15:38:30 +01:00
parent 0c1b5355f4
commit 7c3475c002
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ void PLYImporter::ConvertMeshes(std::vector<PLY::Face>* avFaces,
p_pcOut->mNumVertices = iNum;
if( 0 == iNum ) { // nothing to do
delete[] aiSplit; // cleanup
delete p_pcOut;
return;
}
p_pcOut->mVertices = new aiVector3D[iNum];