Sorry no offense but that makes no sense, proof?It only leaks if the group is destroyed immediately after the ForGroup call.
static UnitGroup G
private static method period takes nothing returns nothing
local integer i=5
local integer n=0
local unit u
loop
exitwhen 0==i
loop
exitwhen n==G.count
set u=G.NextOfGroup
call DisplayTimedTextToPlayer(Player(0),0,0,60,(I2S(GetRandomInt(1,100))+" - "+GetUnitName(u)))
set n=n+1
endloop
set n=0
set i=i-1
endloop
set u=null
endmethod
No, newly created strings leak, not the function per se.The [ljass]DisplayTimedTextToPlayer[/ljass] native leaks lol
You've no idea what you're talking about.>use common ForGroup calls
Leaks.