TriggerRegisterLeaveRectSimple

Parameters
trig trigger
r rect
bug

Leaks handle rectRegion: In Jass you must set local variables that hold agents (or any child type) to null at the end of functions to avoid reference counter leaks.

comment
return type
event
Source code
function TriggerRegisterLeaveRectSimple takes trigger trig, rect r returns event
    local region rectRegion = CreateRegion()
    call RegionAddRect(rectRegion, r)
    return TriggerRegisterLeaveRegion(trig, rectRegion, null)
endfunction
Source
Blizzard.j
wc3modding.com
TriggerRegisterLeaveRectSimple