Clean up iterator in generic for loop
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -174,6 +174,7 @@ namespace Porygon::Evaluation {
|
||||
}
|
||||
this -> EvaluateBlockStatement(block);
|
||||
}
|
||||
delete iterator;
|
||||
}
|
||||
|
||||
/////////////////
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace Porygon::Evaluation{
|
||||
virtual shared_ptr<EvalValue> GetCurrent() = 0;
|
||||
virtual bool MoveNext() = 0;
|
||||
virtual void Reset() = 0;
|
||||
virtual ~Iterator(){}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user