From c3f7d9d15598e2988270f27fbacaf21143968bae Mon Sep 17 00:00:00 2001 From: Andrew Meadows Date: Wed, 2 Jul 2014 11:20:14 -0700 Subject: [PATCH] delete AngularConstraints at end of tests --- tests/shared/src/AngularConstraintTests.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() {