]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
*** empty log message ***
authorageay <ageay>
Tue, 19 May 2009 10:35:01 +0000 (10:35 +0000)
committerageay <ageay>
Tue, 19 May 2009 10:35:01 +0000 (10:35 +0000)
src/INTERP_KERNEL/Interpolation3D.txx

index 88478ea4e6d32cc530ff65a56ca0978a0c8c7e51..d24cbdc8adf36b582d2d4de8fe4b4a3003ee2e19 100644 (file)
@@ -272,9 +272,6 @@ namespace INTERP_KERNEL
     
     BBTree<3,ConnType> tree(bboxes, srcElemIdx, 0, numSrcElems);
     
-    delete [] bboxes;
-    delete [] srcElemIdx;
-    
     // for each target element, get source elements with which to calculate intersection
     // - calculate intersection by calling intersectCells
     for(unsigned long i = 0; i < numTargetElems; ++i)
@@ -297,6 +294,9 @@ namespace INTERP_KERNEL
 
         intersector->intersectCells(targetIdx,intersectElems,result);
       }
+
+    delete [] bboxes;
+    delete [] srcElemIdx;
     
 #endif
     // free allocated memory