Fixed a memory leak in LatticeLexicon