Removed memory leaks in function classes
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
@@ -49,6 +49,10 @@ namespace Porygon::Evaluation {
|
|||||||
_hash(hash), _options(new vector<shared_ptr<GenericFunctionOption>>()){
|
_hash(hash), _options(new vector<shared_ptr<GenericFunctionOption>>()){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~GenericFunctionEvalValue() final{
|
||||||
|
delete _options;
|
||||||
|
}
|
||||||
|
|
||||||
GenericFunctionEvalValue(const GenericFunctionEvalValue& _) = delete;
|
GenericFunctionEvalValue(const GenericFunctionEvalValue& _) = delete;
|
||||||
GenericFunctionEvalValue() = delete;
|
GenericFunctionEvalValue() = delete;
|
||||||
GenericFunctionEvalValue& operator =(GenericFunctionEvalValue v) = delete;
|
GenericFunctionEvalValue& operator =(GenericFunctionEvalValue v) = delete;
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ namespace Porygon {
|
|||||||
for (auto o: *_options){
|
for (auto o: *_options){
|
||||||
delete o;
|
delete o;
|
||||||
}
|
}
|
||||||
|
delete _options;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegisterFunctionOption (GenericFunctionOption * opt) const{
|
void RegisterFunctionOption (GenericFunctionOption * opt) const{
|
||||||
|
|||||||
Reference in New Issue
Block a user