Skip to content
Snippets Groups Projects
Commit 4c09bfaa authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

Removed memory leak in buildGeom of ALU3dGridGeometry for hexa.

[[Imported from SVN: r2378]]
parent 0da2f875
No related branches found
No related tags found
No related merge requests found
......@@ -631,6 +631,7 @@ namespace Dune {
}
}
if(triMap_) delete triMap_;
triMap_ = new TrilinearMapping(coord_[0], coord_[1], coord_[2], coord_[3],
coord_[4], coord_[5], coord_[6], coord_[7]);
......@@ -711,6 +712,7 @@ namespace Dune {
}
}
if(biMap_) delete biMap_;
biMap_ = new BilinearSurfaceMapping(coord_[0], coord_[1],
coord_[2], coord_[3]);
......@@ -728,6 +730,7 @@ namespace Dune {
coord_[i] = coords[i];
}
if(biMap_) delete biMap_;
biMap_ = new BilinearSurfaceMapping(coord_[0], coord_[1],
coord_[2], coord_[3]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment