• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Another Question about Leaks...

Status
Not open for further replies.
Level 3
Joined
Mar 30, 2013
Messages
22
Hey guys,

do Events (Edit: Actions! Not Events! Sorry I mixed it up, using german WE), that are using "triggering unit" or "target of issued order"... create a memory leak? Do I need to set unit variables to make sure that the "triggering unit pointer" is removed properly? Or is it only the reference to the unit, thats used, which should be there anyway, because the unit itself is there...?

  • Unit - Kill (Target unit of ability being cast)
 
Last edited:
Events do not. You should find this as a usefull lecture. Units may leak on death - thats why you should remove (eg. dummies) them instead.

Again, references to units, such as Triggering Unit or Target of ability being cast do not leak.

Events leak....

Look at Bribe's damage engine. He has to remake the trigger after every # units are removed because if he piles up too many events on the trigger than it leaks majorly.

It isn't a well known leak because that's (damage engine) probably the only case where events are added iteratively
 
Status
Not open for further replies.
Back
Top