Fix memory leak when setting in UserDataCollection
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user