From 7c3475c002e7e3681915512a4139caef855fbbeb Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Wed, 30 Dec 2015 15:38:30 +0100 Subject: [PATCH] Coverity findings: fix resource leak in PlyLoader.cpp. --- code/PlyLoader.cpp | 1 + 1 file changed, 1 insertion(+) 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];