Commit 232ece74 authored by finetjul's avatar finetjul

BUG: Fix qMRMLTreeView memory leak

vtkCollectionIterator and vtkCollection had still a reference count of 1
at exit.
Regression from r21523

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21588 3bd1e089-480b-0410-8dfb-8563597acbee
parent 124bddd0
......@@ -863,6 +863,7 @@ void qMRMLTreeView::loadTreeExpandState()
}
// Clear the vtkCollection now
d->ExpandedNodes->RemoveAllItems();
iter->Delete();
}
//------------------------------------------------------------------------------
......
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