Fixed a memory leak in Range.