Fix small memory leak: delete parser states in parser destructor.