From a8282c3ec6ec256174786fbccaf25406317018a3 Mon Sep 17 00:00:00 2001 From: Alexander Kromm Date: Mon, 18 May 2020 22:47:11 +0700 Subject: [PATCH] fix "'ictionary' is freed outside the GC process" warning --- src/dictionary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }