- Reaction score
- 888
I'm usually pretty good about leaks, but I think I have one that I can't find.
Do the following things leak?
Does the above create a location that isn't destroyed?
Does a timer get leaked here?
Is a unit leaked here?
Basically my questions revolve around the concept of whether or not functions that return handles that aren't necessarily stored in a variable cause leaks.
Thanks for any help.
Do the following things leak?
JASS:
set X1 = GetLocationX(GetStartLocationLoc(GetPlayerStartLocation(Player(currentPlayer))))
Does the above create a location that isn't destroyed?
JASS:
call TimerStart(GetExpiredTimer(), SpawnTimes[currentPlayer], false, function Spawn)
Does a timer get leaked here?
JASS:
exitwhen FirstOfGroup(temp) == null
Is a unit leaked here?
Basically my questions revolve around the concept of whether or not functions that return handles that aren't necessarily stored in a variable cause leaks.
Thanks for any help.