fix memory leak
remove uneeded code
Merge pull request #50 from judajake/tie_inputlist_with_view

fix memory leak