Removed memory leaks in function classes
continuous-integration/drone/push Build was killed

This commit is contained in:
Deukhoofd committed 2019-07-25 17:30:42 +02:00
1 parent e2a0c35992
commit d5e16c3826
2 files changed
+5

No files matched your search

@@ -49,6 +49,10 @@ namespace Porygon::Evaluation {
_hash(hash), _options(new vector<shared_ptr<GenericFunctionOption>>()){
}
~GenericFunctionEvalValue() final{
delete _options;
}
GenericFunctionEvalValue(const GenericFunctionEvalValue& _) = delete;
GenericFunctionEvalValue() = delete;
GenericFunctionEvalValue& operator =(GenericFunctionEvalValue v) = delete;
+1
View File
@@ -67,6 +67,7 @@ namespace Porygon {
for (auto o: *_options){
delete o;
}
delete _options;
}
void RegisterFunctionOption (GenericFunctionOption * opt) const{