• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Leak question

Status
Not open for further replies.
Level 26
Joined
Mar 19, 2008
Messages
3,140
If you declare variable but do not set it, then there is nothing given variable is pointing at therefore you do not need to null it.

Although if you use:
JASS:
function whatever takes nothing returns nothing
    local effect e = AddSpecialEffect(...)
endfunction
You should null it at the end of the function.
 
Status
Not open for further replies.
Top