diff --git a/test/tests/collision/TestCollisionWorld.h b/test/tests/collision/TestCollisionWorld.h index 372b9dc5..3538c418 100644 --- a/test/tests/collision/TestCollisionWorld.h +++ b/test/tests/collision/TestCollisionWorld.h @@ -462,7 +462,7 @@ class TestCollisionWorld : public Test { delete mConvexMesh2PolyhedronMesh; delete mConvexMesh1PolygonVertexArray; delete mConvexMesh2PolygonVertexArray; - delete mConvexMeshPolygonFaces; + delete[] mConvexMeshPolygonFaces; delete mConcaveMeshShape; delete mConcaveTriangleMesh; diff --git a/test/tests/collision/TestPointInside.h b/test/tests/collision/TestPointInside.h index 540f9f03..6a7fe5b8 100644 --- a/test/tests/collision/TestPointInside.h +++ b/test/tests/collision/TestPointInside.h @@ -170,11 +170,12 @@ class TestPointInside : public Test { /// Destructor virtual ~TestPointInside() { + delete mWorld; delete mBoxShape; delete mSphereShape; delete mCapsuleShape; delete mConvexMeshShape; - delete mConvexMeshPolygonFaces; + delete[] mConvexMeshPolygonFaces; delete mConvexMeshPolygonVertexArray; delete mConvexMeshPolyhedronMesh; } diff --git a/test/tests/collision/TestRaycast.h b/test/tests/collision/TestRaycast.h index 70397ed0..916997bf 100644 --- a/test/tests/collision/TestRaycast.h +++ b/test/tests/collision/TestRaycast.h @@ -308,6 +308,7 @@ class TestRaycast : public Test { /// Destructor virtual ~TestRaycast() { + delete mWorld; delete mBoxShape; delete mSphereShape; delete mCapsuleShape;