Skip to content
Snippets Groups Projects
Commit df38fa6c authored by Christian Engwer's avatar Christian Engwer
Browse files

fix newly introduced memory leak

[[Imported from SVN: r5504]]
parent 9c06b4f9
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,8 @@ namespace Dune
PointerRep() : count_(1), rep_(new MemberType) {}
/** @brief Constructor from existing Pointer. */
PointerRep(MemberType * p) : count_(1), rep_(p) {}
/** @brief Destructor, deletes MemberType* rep_. */
~PointerRep() { delete rep_; }
} *rep_;
};
......
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