From 95ad8272772ef1555da29649cf0e5ce6bb6c8a43 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Wed, 28 Jan 2015 00:44:26 +0200 Subject: [PATCH] Remove bogus delete[] on error path mBuffer is a pointer inside a std::vector so don't try to delete[] it. --- code/PlyLoader.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/code/PlyLoader.cpp b/code/PlyLoader.cpp index 104e194d9..d61c4e5a7 100644 --- a/code/PlyLoader.cpp +++ b/code/PlyLoader.cpp @@ -156,7 +156,6 @@ void PLYImporter::InternReadFile( const std::string& pFile, } else { - delete[] this->mBuffer; AI_DEBUG_INVALIDATE_PTR(this->mBuffer); throw DeadlyImportError( "Invalid .ply file: Missing format specification"); }