From d5c9b27af887f2223ca8a0ecf4ce9aac6c0b0f64 Mon Sep 17 00:00:00 2001 From: mnml_ Date: Thu, 8 Nov 2018 12:49:35 +0100 Subject: [PATCH] delete[] doesnt set nullptr --- code/DropFaceNormalsProcess.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/DropFaceNormalsProcess.cpp b/code/DropFaceNormalsProcess.cpp index 3800fee0b..57e8b972b 100644 --- a/code/DropFaceNormalsProcess.cpp +++ b/code/DropFaceNormalsProcess.cpp @@ -104,5 +104,6 @@ bool DropFaceNormalsProcess::DropMeshFaceNormals (aiMesh* pMesh) { } delete[] pMesh->mNormals; + pMesh->mNormals = nullptr; return true; }