Thanks!No. For item, you just need to search
Item - Remove
Yes it does leak. Many locations are leaked every cast. Every time you call a function that returns a new location, you will need to pass that location object to RemoveLocation to prevent it from leaking.Does this leak^ ?
How do I remove a real variable?Yes it does leak. Many locations are leaked every cast.
You do not. Real is a primitive type so creates no object to leak. Variables themselves cannot leak as they have well defined life times. Global variables are only created at map initialization and last until map end. Local variables (local keyword declared and function parameters) are created at the start of a function and last until the function call returns.How do I remove a real variable?
Yes. Obviously you can reuse the location object as much as you want as long as you remember to pass it to RemoveLocation before losing reference to it.So if I did this ^ I'd have assign target point to a variable and then use the RemoveLocation of that variable to properly remove the leak?