From 4d296cbebc9daa33c2d94d8ebcf7f91ecd45d211 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Tue, 20 Oct 2015 16:18:56 +0200
Subject: [PATCH] Minor fix

---
 example/Grid/0_simple/main.cpp   | 2 +-
 example/Grid/1_stencil/main.cpp  | 2 +-
 example/Vector/0_simple/main.cpp | 2 +-
 src/unit_test_init_cleanup.hpp   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/Grid/0_simple/main.cpp b/example/Grid/0_simple/main.cpp
index d88ee12e..b725c8bf 100644
--- a/example/Grid/0_simple/main.cpp
+++ b/example/Grid/0_simple/main.cpp
@@ -151,5 +151,5 @@ int main(int argc, char* argv[])
 	//
 	// Deinitialize the library
 	//
-	delete(global_v_cluster);
+	delete_global_v_cluster();
 }
diff --git a/example/Grid/1_stencil/main.cpp b/example/Grid/1_stencil/main.cpp
index 1a08184c..3d4470c6 100644
--- a/example/Grid/1_stencil/main.cpp
+++ b/example/Grid/1_stencil/main.cpp
@@ -154,5 +154,5 @@ int main(int argc, char* argv[])
 	//
 	// Deinitialize the library
 	//
-	delete(global_v_cluster);
+	delete_global_v_cluster();
 }
diff --git a/example/Vector/0_simple/main.cpp b/example/Vector/0_simple/main.cpp
index 17d0ddc1..9dd3b292 100644
--- a/example/Vector/0_simple/main.cpp
+++ b/example/Vector/0_simple/main.cpp
@@ -122,5 +122,5 @@ int main(int argc, char* argv[])
 	//
 	// Deinitialize the library
 	//
-	delete(global_v_cluster);
+	delete_global_v_cluster();
 }
diff --git a/src/unit_test_init_cleanup.hpp b/src/unit_test_init_cleanup.hpp
index 0cbd6fd7..12b98f01 100644
--- a/src/unit_test_init_cleanup.hpp
+++ b/src/unit_test_init_cleanup.hpp
@@ -12,7 +12,7 @@
 
 struct ut_start {
     ut_start()   { BOOST_TEST_MESSAGE("Initialize global VCluster"); init_global_v_cluster(&boost::unit_test::framework::master_test_suite().argc,&boost::unit_test::framework::master_test_suite().argv); }
-    ~ut_start()  { BOOST_TEST_MESSAGE("Delete global VClster");delete(global_v_cluster); }
+    ~ut_start()  { BOOST_TEST_MESSAGE("Delete global VClster");delete_global_v_cluster(); }
 };
 
 //____________________________________________________________________________//
-- 
GitLab