From 79d9fc530d3cc16b82356613daa7b4f80f1c4c1d Mon Sep 17 00:00:00 2001 From: Karol Szuster Date: Sat, 31 Dec 2016 23:49:46 +0100 Subject: [PATCH] Update AMTL (#390) --- amxmodx/trie_natives.cpp | 2 +- amxmodx/trie_natives.h | 2 +- public/amtl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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