Skip to content
Snippets Groups Projects
Commit 7db51c73 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: fix memory leak caused by smart pointer loop

parent af0c0ffd
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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