Well, I made a spell using timer(s) and i nulled them after starting.
But recently I've read this:
So if I do this:
Is both t = null OK or shouldn't I null timers?
But recently I've read this:
no problem
Note, that destroying timers and then setting its variable to null can cause a similar handle stack corruption bug. You can avoid this by using timer recycling, for example TimerUtils (or by never setting timer variables to null, taking insignificant leaks into account).
So if I do this:
JASS:
function A takes nothing returns nothing
local timer t = GetExpiredTimer()
//some other stuff here
set t = null
endfunction
function B takes nothing returns nothing
local timer t = CreateTimer()
call TimerStart(t, 1., false, function A)
set t = null
endfunction