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 drfrag
parent aa224a7448
commit a8282c3ec6

View file

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