Triggering unit won't work here because SpyDaniel does not want to kill the triggering unit. SpyDaniel, you can make those triggers of yours work for multiple units without bugs by using an unit indexer.
I understand that polo2005 is accessing stored data. That accessed data is leaking. Anyways, he is only leaking that accessed data, so the leaks might not matter. Then again, if 100 units were picked at map initialization, that means 100 locations referenced in memory. Here is a source...
Leaking has nothing to do with how a variable is used. The objects that are stored in variables leak if not destroyed. The location is not reused, but the variable is reused. Also, each unit picked in the group has a different position.
You are leaking a location because you are referencing the unit's position and not destroying it. Each unit's position is a location. Therefore, you are leaking several locations. I hope I did not offend you.
Here is a neat system that will do what you need. http://www.hiveworkshop.com/forums/spells-569/simple-spawning-reviving-system-1-2f-gui-218179/?prev=u%3Ddefskull%26r%3D20%26d%3Dlist%26page%3D2
Dameon, he is not leaking that unit group because set bj_wantDestroyGroup = true will destroy the...