From f2cb8d4016fe705ada2cfabdce282b80488bf9be Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 28 Jul 2019 19:03:13 +0200 Subject: [PATCH] Fix memory leak when setting in UserDataCollection --- src/UserData/UserDataCollectionValue.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UserData/UserDataCollectionValue.hpp b/src/UserData/UserDataCollectionValue.hpp index 8728036..32eda09 100644 --- a/src/UserData/UserDataCollectionValue.hpp +++ b/src/UserData/UserDataCollectionValue.hpp @@ -67,6 +67,7 @@ namespace Porygon::UserData { void SetIndexValue(const EvalValue *key, const EvalValue* value) const final{ _helper->Set(key, value); + delete value; } }; }