Clean up iterator in generic for loop
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9727c9365e
commit
46197e0a6e
|
@ -174,6 +174,7 @@ namespace Porygon::Evaluation {
|
||||||
}
|
}
|
||||||
this -> EvaluateBlockStatement(block);
|
this -> EvaluateBlockStatement(block);
|
||||||
}
|
}
|
||||||
|
delete iterator;
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////
|
/////////////////
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace Porygon::Evaluation{
|
||||||
virtual shared_ptr<EvalValue> GetCurrent() = 0;
|
virtual shared_ptr<EvalValue> GetCurrent() = 0;
|
||||||
virtual bool MoveNext() = 0;
|
virtual bool MoveNext() = 0;
|
||||||
virtual void Reset() = 0;
|
virtual void Reset() = 0;
|
||||||
|
virtual ~Iterator(){}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue