i want ask something
i use this jass for finding leak in my map
and i found leak in this trigger , i already make it short
how to fix the leak ?
i use this jass for finding leak in my map
JASS:
function HandleCount takes nothing returns nothing
local location L = Location(0,0)
call BJDebugMsg(I2S(GetHandleId(L)-0x100000))
call RemoveLocation(L)
set L = null
endfunction
//===========================================================================
function InitTrig_HandleCount_Copy takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterTimerEvent(t,0.09,true)
call TriggerAddAction(t,function HandleCount)
endfunction
and i found leak in this trigger , i already make it short
-
bug
-
Events
- Time - Every 0.05 seconds of game time
- Conditions
-
Actions
- Set LkasiTrap = (Position of Paladin 0002 <gen>)
- Set Unit_Groups = (Units within 150.00 of LkasiTrap)
- Custom script: call DestroyGroup(udg_Unit_Groups)
- Custom script: set udg_Unit_Groups = null
- Custom script: call RemoveLocation(udg_LkasiTrap)
-
Events
Attachments
Last edited by a moderator: