Skip to content
Snippets Groups Projects
Commit 397f21e5 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

fix memory leak in BoundaryElementsOnSurface

parent 25ffd8b0
No related branches found
No related tags found
No related merge requests found
...@@ -53,6 +53,8 @@ BoundaryElementsOnSurface::BoundaryElementsOnSurface(MeshLib::Mesh const& mesh, ...@@ -53,6 +53,8 @@ BoundaryElementsOnSurface::BoundaryElementsOnSurface(MeshLib::Mesh const& mesh,
// update the list // update the list
if (cnt_match==face->getNNodes()) if (cnt_match==face->getNNodes())
_boundary_elements.push_back(const_cast<MeshLib::Element*>(face)); _boundary_elements.push_back(const_cast<MeshLib::Element*>(face));
else
delete face;
} }
} }
} }
......
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