Fix memory leaks in tests
This commit is contained in:
parent
cd897f1151
commit
d55c7e3b91
|
@ -462,7 +462,7 @@ class TestCollisionWorld : public Test {
|
||||||
delete mConvexMesh2PolyhedronMesh;
|
delete mConvexMesh2PolyhedronMesh;
|
||||||
delete mConvexMesh1PolygonVertexArray;
|
delete mConvexMesh1PolygonVertexArray;
|
||||||
delete mConvexMesh2PolygonVertexArray;
|
delete mConvexMesh2PolygonVertexArray;
|
||||||
delete mConvexMeshPolygonFaces;
|
delete[] mConvexMeshPolygonFaces;
|
||||||
|
|
||||||
delete mConcaveMeshShape;
|
delete mConcaveMeshShape;
|
||||||
delete mConcaveTriangleMesh;
|
delete mConcaveTriangleMesh;
|
||||||
|
|
|
@ -170,11 +170,12 @@ class TestPointInside : public Test {
|
||||||
|
|
||||||
/// Destructor
|
/// Destructor
|
||||||
virtual ~TestPointInside() {
|
virtual ~TestPointInside() {
|
||||||
|
delete mWorld;
|
||||||
delete mBoxShape;
|
delete mBoxShape;
|
||||||
delete mSphereShape;
|
delete mSphereShape;
|
||||||
delete mCapsuleShape;
|
delete mCapsuleShape;
|
||||||
delete mConvexMeshShape;
|
delete mConvexMeshShape;
|
||||||
delete mConvexMeshPolygonFaces;
|
delete[] mConvexMeshPolygonFaces;
|
||||||
delete mConvexMeshPolygonVertexArray;
|
delete mConvexMeshPolygonVertexArray;
|
||||||
delete mConvexMeshPolyhedronMesh;
|
delete mConvexMeshPolyhedronMesh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -308,6 +308,7 @@ class TestRaycast : public Test {
|
||||||
|
|
||||||
/// Destructor
|
/// Destructor
|
||||||
virtual ~TestRaycast() {
|
virtual ~TestRaycast() {
|
||||||
|
delete mWorld;
|
||||||
delete mBoxShape;
|
delete mBoxShape;
|
||||||
delete mSphereShape;
|
delete mSphereShape;
|
||||||
delete mCapsuleShape;
|
delete mCapsuleShape;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user