Skip to content
Snippets Groups Projects
Commit 51403123 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

fix memory leak

[[Imported from SVN: r8400]]
parent d193296f
No related branches found
No related tags found
No related merge requests found
...@@ -202,7 +202,7 @@ void testFrameInvariance() ...@@ -202,7 +202,7 @@ void testFrameInvariance()
v[i] = i; v[i] = i;
factory.insertElement(GeometryType(GeometryType::simplex,dim), v); factory.insertElement(GeometryType(GeometryType::simplex,dim), v);
const GridType* grid = factory.createGrid(); const std::auto_ptr<GridType> grid(factory.createGrid());
// ////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////
// Test whether the energy is invariant under isometries // Test whether the energy is invariant under isometries
...@@ -222,7 +222,7 @@ void testFrameInvariance() ...@@ -222,7 +222,7 @@ void testFrameInvariance()
for (int j=0; j<dim+1; j++) for (int j=0; j<dim+1; j++)
coefficients[j] = testPoints[index[j]]; coefficients[j] = testPoints[index[j]];
testEnergy<GridType>(grid, coefficients); testEnergy<GridType>(grid.get(), coefficients);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment