Skip to content
Snippets Groups Projects
Commit 011bb250 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Delete pointers in destructors.

This removes a memory leak.
parent 8dd20afc
No related branches found
No related tags found
No related merge requests found
......@@ -193,6 +193,9 @@ public:
~GroundwaterFlowProcess()
{
for (auto p : _neumann_bcs)
delete p;
for (auto p : _local_assemblers)
delete p;
......
......@@ -77,6 +77,11 @@ public:
~NeumannBc()
{
for (auto p : _all_mesh_subsets)
delete p;
delete _mesh_subset_all_nodes;
for (auto e : _elements)
delete e;
......
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