• 🏆 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!

[Solved] What is the purpose of this action? +rep

Status
Not open for further replies.
Level 33
Joined
Mar 27, 2008
Messages
8,035
Leaks should be taken seriously because it will be generated infinitely (well, until the system stops looping or stop its usage (for example leaking points that not been cleared))

While this trigger is a handle, which just not necessary to be destroyed but it can be destroyed

You can choose to destroy it or not, but leaks are a-must destroy
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
You can create new triggers during runtime, makes sense with the UnitWithinRange-event for example. So you would allocate a trigger for each unit but all the units might appear through other means. So you always store more stuff in memory. In contrast to a static leak, the max consumption is not limited and can therefore become a problem.
 
Status
Not open for further replies.
Top