Fix memory leak when setting in UserDataCollection
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-07-28 19:03:13 +02:00
parent 4b5672e3f5
commit f2cb8d4016
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }
}; };
} }