Hi Ralle. I came across your leak tester by chance and did a random test. Apparently there is a bug here. Here is my code
struct Test extends array
static method onEsc takes nothing returns nothing
call UnitAddAbility(udg_TempUnit, 'A001')
call UnitAddAbility(udg_TempUnit, 'A002')
call UnitAddAbility(udg_TempUnit, 'A000')
endmethod
static method onInit takes nothing returns nothing
local trigger t = CreateTrigger()
local location l = Location(0, 0)
call TriggerRegisterPlayerEvent(t, Player(0), EVENT_PLAYER_END_CINEMATIC)
call TriggerAddAction(t, function thistype.onEsc)
set t = null
endmethod
endstruct
The result I got is "Found 0 leaks" whereas local var l is supposed to leak.
Hope I helped :)
edit
Untitled Trigger 002
Events
Conditions
Actions
Set TempPoint = (Center of (Playable map area))
Still 0 leak.
Map here:
http://www.hiveworkshop.com/forums/pastebin.php?id=mfkz52