From 1e6af4261e1ad17bb32a71385223c199c8323fee Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Fri, 19 Jul 2019 14:02:08 -0700 Subject: [PATCH] Update HeightfieldExample.cpp --- examples/Heightfield/HeightfieldExample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Heightfield/HeightfieldExample.cpp b/examples/Heightfield/HeightfieldExample.cpp index 0e73066db..4b64fc14b 100644 --- a/examples/Heightfield/HeightfieldExample.cpp +++ b/examples/Heightfield/HeightfieldExample.cpp @@ -1036,7 +1036,7 @@ void HeightfieldExample::clearWorld(void) m_collisionShapes.clear(); // delete raw heightfield data - delete m_rawHeightfieldData; + delete[] m_rawHeightfieldData; m_rawHeightfieldData = NULL; } }