Fix memory leak when setting in UserDataCollection
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
4b5672e3f5
commit
f2cb8d4016
|
@ -67,6 +67,7 @@ namespace Porygon::UserData {
|
||||||
|
|
||||||
void SetIndexValue(const EvalValue *key, const EvalValue* value) const final{
|
void SetIndexValue(const EvalValue *key, const EvalValue* value) const final{
|
||||||
_helper->Set(key, value);
|
_helper->Set(key, value);
|
||||||
|
delete value;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue