Ardenian
A
Ardenian
JASS:
local location p = LoadLocationHandle( hash, i, i2)
//actions
call RemoveLocation(p)
set p = null
That's how I learned to fix the .. was it the agent leak or reference leak ?
Anyways, If I use the three lines above in my function, it does not work.
Upon commenting out the last two lines, the leak fixing ones, it does.
That being said, I cannot fix the location leak properly ?
I don't understand one thing: I read that locations saved in a hashatble are not newly created, that being said, removing and fixing the leak will erase them from the hashtable.
So how do I fix the leak and as well prevent the saved hashtable location being erased ?