Commit 7db51c73 authored by Julien Malik's avatar Julien Malik

BUG: fix memory leak caused by smart pointer loop

parent af0c0ffd
......@@ -162,7 +162,7 @@ public:
/** Set/Get the root of the current parameter (direct parent) */
virtual void SetRoot(const Parameter::Pointer root)
{
m_Root = root;
m_Root = root.GetPointer();
}
virtual const Parameter::Pointer GetRoot()
......@@ -256,7 +256,7 @@ protected:
Role m_Role;
/** List of parents Parameters */
Parameter::Pointer m_Root;
Parameter* m_Root;
/** List of children parameters */
std::vector<Parameter::Pointer > m_ChildrenList;
......
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