diff --git a/src/dictionary.cpp b/src/dictionary.cpp index eb9f323f9..49cfa4bac 100644 --- a/src/dictionary.cpp +++ b/src/dictionary.cpp @@ -43,7 +43,7 @@ void Dictionary::Serialize(FSerializer &arc) Dictionary *pointerToDeserializedDictionary; arc(key, pointerToDeserializedDictionary); Map.TransferFrom(pointerToDeserializedDictionary->Map); - delete pointerToDeserializedDictionary; + pointerToDeserializedDictionary->Destroy(); } }