From ae50a1dcb46f0c165e3581b53eadf07dab8bada2 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Tue, 22 Oct 2013 15:05:51 +0000
Subject: [PATCH] after removal of the deprecated members, the local variables
 are used longer and have to be deleted later.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11774 2fb0f335-1f38-0410-981e-8018bf24f1b0
---
 dumux/implicit/box/boxfvelementgeometry.hh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dumux/implicit/box/boxfvelementgeometry.hh b/dumux/implicit/box/boxfvelementgeometry.hh
index dcdcb3352b..bc2b599e78 100644
--- a/dumux/implicit/box/boxfvelementgeometry.hh
+++ b/dumux/implicit/box/boxfvelementgeometry.hh
@@ -642,8 +642,6 @@ public:
         // _BoxFVElemGeomHelper in order to benefit from more aggressive
         // compiler optimizations...
         BoxFVElemGeomHelper::fillSubContVolData(*this, numScv, edgeCoordinates, faceCoordinates);
-        delete[] edgeCoordinates;
-        delete[] faceCoordinates;
 
         // fill sub control volume face data:
         for (int k = 0; k < numScvf; k++) { // begin loop over edges / sub control volume faces
@@ -935,6 +933,9 @@ public:
                     jacInvT.mv(localJac[vIdx][0], subContVol[scvIdx].gradCenter[vIdx]);
             }
         }
+
+        delete[] edgeCoordinates;
+        delete[] faceCoordinates;
     }
 };
 }
-- 
GitLab