Clean up iterator in generic for loop
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-06-27 14:27:31 +02:00
parent 9727c9365e
commit 46197e0a6e
2 changed files with 2 additions and 0 deletions

View File

@@ -174,6 +174,7 @@ namespace Porygon::Evaluation {
}
this -> EvaluateBlockStatement(block);
}
delete iterator;
}
/////////////////

View File

@@ -13,6 +13,7 @@ namespace Porygon::Evaluation{
virtual shared_ptr<EvalValue> GetCurrent() = 0;
virtual bool MoveNext() = 0;
virtual void Reset() = 0;
virtual ~Iterator(){}
};
}