Commit 343645d0 authored by Praetorius, Simon's avatar Praetorius, Simon

Memory leak in SystemVector corrected

parent 9118b8a6
...@@ -911,6 +911,7 @@ namespace AMDiS { ...@@ -911,6 +911,7 @@ namespace AMDiS {
friend struct io::MacroWriter; friend struct io::MacroWriter;
friend class MacroElement; friend class MacroElement;
friend class Element; friend class Element;
friend class MeshRestriction;
}; };
} }
......
...@@ -55,7 +55,8 @@ namespace AMDiS { ...@@ -55,7 +55,8 @@ namespace AMDiS {
SystemVector(const SystemVector& rhs) SystemVector(const SystemVector& rhs)
: name(rhs.getName()), : name(rhs.getName()),
componentSpaces(rhs.getFeSpaces()), componentSpaces(rhs.getFeSpaces()),
vectors(rhs.getNumVectors()) vectors(rhs.getNumVectors()),
createVec(true)
{ {
for (unsigned int i = 0; i < vectors.size(); i++) for (unsigned int i = 0; i < vectors.size(); i++)
vectors[i] = new DOFVector<double>(*rhs.getDOFVector(i)); vectors[i] = new DOFVector<double>(*rhs.getDOFVector(i));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment