treeItem memory leak

Issue #437 resolved