- Joined
- Jul 10, 2008
- Messages
- 36
I was wondering using the points variable for spawning units into a particular region. Using that function, will the point leak like the War3 World Edit?? Becoz i cant find the remove/destroy variable function!!
Everything that is an object, aka not primitive to galaxy is cleaned up automatically.
That's not entirely true. Only certain objects benefit from automatic garbage collection (see the list in my post above). Other objects you DO have to remove yourself, but these are usually objects automatic garbage collection would be impossible for, since there are many situations in which they should remain around even if no galaxy code references them, like triggers and units.
And no, you can't manually destroy those objects, since blizz didn't provide the appropriate functions to do so.