• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Text tag leak?

Status
Not open for further replies.
Level 13
Joined
Nov 22, 2006
Messages
1,260
This is a function from Peekaboo, I got it from wc3jass. Isn't the texttag leaking here?

JASS:
function FadingText takes string msg, integer red, integer green, integer blue, real x, real y, real spd, real fadetime, real life returns nothing
local texttag t=CreateTextTag()
    call SetTextTagText(t,msg,0.024)
    call SetTextTagPos(t,x,y, 0.00)
    call SetTextTagColor(t,red,green,blue,255)
    call SetTextTagVelocity(t,0,spd)
    call SetTextTagVisibility(t, true)
    call SetTextTagFadepoint(t, fadetime)
    call SetTextTagLifespan(t, life)
    call SetTextTagPermanent(t, false)
    set t=null
endfunction
 
Status
Not open for further replies.
Top