[leak] short question 'group'

Frozenwind

System maker
Reaction score
99
Should I 'null' unitgroup global variables after doing: ?
JASS:
call DestroyGroup (udg_unitgroupvar1)

Or should I only do
JASS:
set udg_unitgroupvar1 = null


What removes the entire leak?

NOTE: I use the variable later in-game too.
 

Frozenwind

System maker
Reaction score
99
Ok, thnx.

But you gotta 'null' locationvariables? Or only local locationvariables then?
 

Frozenwind

System maker
Reaction score
99
Pointless to make new thread so I'll post it here since its the same subject.
I'm sorry that it gives a doublepost, but making new thread would be technically same.

Does a region leak? The answer to that is yes.
Code:
("[COLOR="Red"]my region[/COLOR]" <gen> contains (Triggering unit)) Equal to False
Should I store that red region in a variable in order to remove the memory leak afterwards?
If so, what is the custom script to remove a regionleak?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Regions from the Region Palette don't leak.
They simply exist for the duration of the game and are not re-created every time you use one.

Dynamically created regions are another story, but I guess you aren't using that feature.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top