[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