Fix memory leak introduced by last commit

This commit is contained in:
Govindas 2021-02-01 14:11:01 +02:00
parent 8e760c4d8b
commit 233d21a30b
1 changed files with 4 additions and 2 deletions

View File

@ -119,8 +119,10 @@ public class EffExecuteStatement extends Effect {
((Map<String, Object>) res).forEach((name, value) -> setVariable(e, name, value));
}
TriggerItem.walk(getNext(), e);
//let's try with this commented, as it may be not needed? let's test!
//Variables.removeLocals(e);
//the line below is required to prevent memory leaks
//no functionality difference notice with it being removed from my test, but the memory gets filled with leaks
//so it must be kept
Variables.removeLocals(e);
}
});
});