updated recast manager to free memory allocated to positions