From 840f3361887ca337f1258f6ba23038f12c2e758c Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 19 Jan 2015 14:46:22 +0100
Subject: [PATCH] [T] Remove points at the end of the test.

---
 Tests/GeoLib/TestBoundingSphere.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Tests/GeoLib/TestBoundingSphere.cpp b/Tests/GeoLib/TestBoundingSphere.cpp
index 76341d05852..d2fc8da4396 100644
--- a/Tests/GeoLib/TestBoundingSphere.cpp
+++ b/Tests/GeoLib/TestBoundingSphere.cpp
@@ -12,6 +12,8 @@
  *
  */
 
+#include <memory>
+
 #include "gtest/gtest.h"
 
 #include "GeoLib/MinimalBoundingSphere.h"
@@ -118,4 +120,7 @@ TEST(GeoLib, TestBoundingSphere)
     ASSERT_NEAR(0.5, center[1], std::numeric_limits<double>::epsilon());
     ASSERT_NEAR(0.6, center[2], std::numeric_limits<double>::epsilon());
     ASSERT_NEAR(0.9273, s.getRadius(), 0.0001);
+
+    std::for_each(pnts.begin(), pnts.end(),
+        std::default_delete<MathLib::MathPoint>());
 }
-- 
GitLab