Removed memory leaks in function classes
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
e2a0c35992
commit
d5e16c3826
|
@ -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{
|
||||||
|
|
Loading…
Reference in New Issue