Question about memory leaks..!

8uY_YoU

New Member
Reaction score
4
1) When only setting the variable without removing it, still causing leaks?
2) I opened blizzard's map (Candy war) and looked his group memory leak removal.. He used , my question is.. How to use it?
3) If i use local point variable, without nulling it (but removed at the end) doesn't it creates leaks?
4) Based on number 2 question, can't we use
JASS:
bj_wantRemoveLocation = true
or other?
5) Thanks for help..!! :)
 

Azlier

Old World Ghost
Reaction score
461
2. You can use either DestroyGroup or bj_wantDestroyGroup = true. Whatever you like. To use bj_wantDestroyGroup, set it to true in a custom script line and pick your units. It sets itself to false after every use, though.

3. Yes.

4. No. There's only a bj_wantDestroyGroup, no bj_wantDestroyLocation. Locations are totally different things.

5. Alright?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
2. You can use either DestroyGroup or bj_wantDestroyGroup = true. Whatever you like. To use bj_wantDestroyGroup, set it to true in a custom script line and pick your units. It sets itself to false after every use, though.

Note that using bj_wantDestroyGroup doesn't work in all cases.
It wouldn't work in this case, for example:
Trigger:
  • Actions
    • Custom Script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Random 4 units from (Units in (Playable map area))) and do (Actions)
      • Loop - Actions

It would leak 1 group, instead of 2.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top