 |
|
AMX Mod X Plugin Approver
|

07-02-2014
, 11:43
Re: How to improve this code?
|
#4
|
With 1.8.2, It's designed like: at map change the handle system is well freed, but not the actual allocated memory from plugin datas, which will be reused (or extented) if needed. In others words, if you allocate x bytes from plugin A, and this plugin is disabled on next map, you will have x bytes allocated for nothing.
With 1.8.3, the trie natives are no more based on KTrie library but on Hashmap instead, the whole system is different and this time, memory should be freed properly at each map change.
Still, it's a good practice to free always when you can something you have previously allocated.
I would recommend to use always in this context TrieDestroy in plugin_end().
__________________
|
|
|
|