diff --git a/tests/shared/src/AngularConstraintTests.cpp b/tests/shared/src/AngularConstraintTests.cpp index 22762ea524..d6a9214acc 100644 --- a/tests/shared/src/AngularConstraintTests.cpp +++ b/tests/shared/src/AngularConstraintTests.cpp @@ -281,6 +281,7 @@ void AngularConstraintTests::testHingeConstraint() { << " ERROR: HingeConstraint rotation = " << newRotation << " but expected " << expectedRotation << std::endl; } } + delete c; } void AngularConstraintTests::testConeRollerConstraint() { @@ -466,6 +467,7 @@ void AngularConstraintTests::testConeRollerConstraint() { << " ERROR: rotation = " << newRotation << " but expected " << expectedRotation << std::endl; } } + delete c; } void AngularConstraintTests::runAllTests() {