Splitter: fix memleak