• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Memory Leaks

Status
Not open for further replies.
Level 18
Joined
Jan 21, 2006
Messages
2,552
So what's the deal with memory leaks in StarCraft II? Did blizzard add some sort of garbage collection so we no longer have to destroy handles such as groups that are no longer being used?
 
Level 10
Joined
Nov 28, 2008
Messages
655
From Blizzard:

-- Complex types and automatic deletion --

Many native types represent "complex" objects (i.e. larger than 4 bytes). The script language automatically keeps track of these objects and deletes them from memory when they are no longer used (that is, when nothing in the script references them any longer). The types which benefit from automatic deletion are:

abilcmd, bank, camerainfo, marker, order, playergroup, point, region, soundlink, string, text, timer, transmissionsource, unitfilter, unitgroup, unitref, waveinfo, wavetarget

Other object types must be explicitly destroyed with the appropriate native function when you are done using them.
 
Status
Not open for further replies.
Top