fix memory 'leak' where the original text passed to parse() would be retained until the next call.