I have some questions about fixing memory leaks. I am working on a big map right now that uses a bunch of looping triggers that call unit groups and use a lot of different positions. The unit group triggers are proabably where the biggest leaks are right now. I only know GUI so im not even sure I fix the leaks without jass.
Here's one of my current triggers:
GUI Trigger:

Test Alien Behavior
Here is another version of the trigger I think would fix the leaks:
GUI Trigger:

Test Alien Behavior Leaks Fixed
Like I said though, I don't have much experience with Jass and I don't know how I would wright the custom script that destroys the unit group. If anyone has an idea of how can fix these mem leaks, please post back. My map's gonna be awsome, but I can't even play it if there's constant lag!
