fix "'ictionary' is freed outside the GC process" warning

This commit is contained in:
Alexander Kromm 2020-05-18 22:47:11 +07:00 committed by Christoph Oelckers
parent dd40778c75
commit 53ea19c6a8

View file

@ -43,7 +43,7 @@ void Dictionary::Serialize(FSerializer &arc)
Dictionary *pointerToDeserializedDictionary;
arc(key, pointerToDeserializedDictionary);
Map.TransferFrom(pointerToDeserializedDictionary->Map);
delete pointerToDeserializedDictionary;
pointerToDeserializedDictionary->Destroy();
}
}