Fixed memory leak in word-splitter