From b3b08728fa3dac9fdd871f130785287ad69ec3ff Mon Sep 17 00:00:00 2001 From: abma Date: Tue, 26 Jan 2016 22:47:50 +0100 Subject: [PATCH] fix new / delete missmatch --- code/SplitLargeMeshes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SplitLargeMeshes.cpp b/code/SplitLargeMeshes.cpp index e54f515eb..00bdc2ee3 100644 --- a/code/SplitLargeMeshes.cpp +++ b/code/SplitLargeMeshes.cpp @@ -128,7 +128,7 @@ void SplitLargeMeshesProcess_Triangle::UpdateNode(aiNode* pcNode, } // now build the new list - delete pcNode->mMeshes; + delete[] pcNode->mMeshes; pcNode->mNumMeshes = (unsigned int)aiEntries.size(); pcNode->mMeshes = new unsigned int[pcNode->mNumMeshes];