Fixed some memory leaks in AStarSearcher