prevent memory leak from RepoTreeModel
Merge pull request #221 from Chilledheart/patch-1

prevent memory leak from RepoTreeModel