• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Is removing units from group enough to solve memory leaks?

Status
Not open for further replies.
Level 5
Joined
Jul 12, 2016
Messages
59
What title says, does a system like the one below prevent leaking, or do I need to destroy the group with a custom script? Haven't been able to find a clear answer.

  • Untitled Trigger 004
    • Events
    • Conditions
    • Actions
      • Set VariableSet GroupUnit_Temp1 = (Units of type Footman)
      • Unit Group - Pick every unit in GroupUnit_Temp1 and do (Actions)
        • Loop - Actions
          • Unit Group - Remove (Picked unit) from GroupUnit_Temp1.
To be clear, I know how to prevent group leaking by destroying the group with custom scripts, I'm wondering if the above works as well.
 
Im pretty sure you have to destroy it. An empty unit group will also leak.
Might be wrong though so better wait for more replies :)
 
I think calling
Code:
set bj_wantDestroyGroup = true
before creating a group should be enough, is this true?
 
Status
Not open for further replies.
Back
Top