ForGroupWithCleanup
not ratedUse this when you want the group variable you're performing the grouping on to be destroyed. Usually the GUI creates a group and passes it to ForGroupBJ -- this group never gets deleted and causes a memory leak, eventually leading to instability if you have lots of groupings. Replace calls to ForGroupBJ with this and the memory leaks will go away. Just make sure you don't pass any groups to it you still need to use afterwards.