Clean up iterator in generic for loop
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-06-27 14:27:31 +02:00
parent 9727c9365e
commit 46197e0a6e
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
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(){}
};
}