diff --git a/code/PlyLoader.cpp b/code/PlyLoader.cpp index f86ddcead..eaa919277 100644 --- a/code/PlyLoader.cpp +++ b/code/PlyLoader.cpp @@ -312,6 +312,7 @@ void PLYImporter::ConvertMeshes(std::vector* avFaces, p_pcOut->mNumVertices = iNum; if( 0 == iNum ) { // nothing to do delete[] aiSplit; // cleanup + delete p_pcOut; return; } p_pcOut->mVertices = new aiVector3D[iNum];