• 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.

[Solved] Nulling

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
Most likely nullifying object variables. A lot of object types are agents, which count the remaining pointers. Such an object cannot release its id, its identification number, until all references are gone. Global variables are typically reused, so it does not really matter with them. Local variables are dynamically allocated during the game though and the problem is that the reference-counter is not automatially decremented when the local variable is freed. GUI does not provide local variables, so unless you write jass code or call some specific blizzard function where they blundered themselves (maybe they had no idea of this glitch either or just did not care), you should be okay. Not nullifying local agent variables leads to minor leaks.
 
Status
Not open for further replies.
Top