Path Object dispose
After you’ve finished dealing with the Path object, you need to call the
Path.Dispose() method. This is necessary to remove the path from the obstacle storage. Otherwise, when adding / updating / removing any obstacle, the path will be checked for the need to update, which will take up computing resources.