diff --git a/amxmodx/trie_natives.cpp b/amxmodx/trie_natives.cpp index b1af84ad..2c0fd565 100644 --- a/amxmodx/trie_natives.cpp +++ b/amxmodx/trie_natives.cpp @@ -355,7 +355,7 @@ static cell AMX_NATIVE_CALL TrieSnapshotCreate(AMX *amx, cell *params) int index = TrieSnapshotHandles.create(); TrieSnapshot *snapshot = TrieSnapshotHandles.lookup(index); snapshot->length = t->map.elements(); - snapshot->keys = new int[snapshot->length]; + snapshot->keys = ke::MakeUnique(snapshot->length); size_t i = 0; for (StringHashMap::iterator iter = t->map.iter(); !iter.empty(); iter.next(), i++) diff --git a/amxmodx/trie_natives.h b/amxmodx/trie_natives.h index c69d15b2..695d72a5 100644 --- a/amxmodx/trie_natives.h +++ b/amxmodx/trie_natives.h @@ -155,7 +155,7 @@ struct TrieSnapshot } size_t length; - ke::AutoArray keys; + ke::AutoPtr keys; BaseStringTable strings; }; diff --git a/public/amtl b/public/amtl index 36454137..e3a888ea 160000 --- a/public/amtl +++ b/public/amtl @@ -1 +1 @@ -Subproject commit 364541372c405ed172e7da778367a0392afdc24f +Subproject commit e3a888eab7ee73e7fbff9f3e2f0529a87b284d39