FIX: release reference to X in _tree.splitter
Merge pull request #2363 from glouppe/tree-memory

FIX: release reference to X in _tree.splitter