- Joined
- Mar 22, 2012
- Messages
- 1,551
Does this leaks: Create paathing blockers at point ofset x= for excample 2421 and y=5542 so nothing like x of unit and y of unit.
function OffsetLocation takes location loc, real dx, real dy returns location
return Location(GetLocationX(loc) + dx, GetLocationY(loc) + dy)
endfunction
creating something will always leak but not the position itself using Xy coordinates...
you already answered the non-sense statement >>> "Technically a leak it's when there is some memory hold"...all objects in WC3 creates memory allocations, intended or not...Sorry but what you are saying doesn't make sense.
--->Your quote is not long enough, it's out of context without "when it's no more necessary".
all objects in WC3 creates memory allocations, intended or not
globals
location point=Location(0,0)
endglobals
call MoveLocation(point,newX,newY)
group
if it never retains contents.