Merge pull request #256 from DmitriyS/master

Plugins: Close Array/Trie handles on map end
This commit is contained in:
Vincent Herbet 2015-07-11 00:12:51 +02:00
commit b8cc1ac79d
5 changed files with 22 additions and 0 deletions

View File

@ -1332,3 +1332,9 @@ public cmdLast(id, level, cid)
return PLUGIN_HANDLED; return PLUGIN_HANDLED;
} }
public plugin_end()
{
TrieDestroy(g_tempBans);
TrieDestroy(g_tXvarsFlags);
}

View File

@ -117,4 +117,7 @@ public plugin_end()
num_to_str(g_Current, lastinfo, charsmax(lastinfo)) num_to_str(g_Current, lastinfo, charsmax(lastinfo))
set_localinfo("lastinfomsg", lastinfo) set_localinfo("lastinfomsg", lastinfo)
ArrayDestroy(g_Messages)
ArrayDestroy(g_Values)
} }

View File

@ -289,4 +289,6 @@ public plugin_end()
get_mapname(current_map, charsmax(current_map)) get_mapname(current_map, charsmax(current_map))
set_localinfo("lastMap", current_map) set_localinfo("lastMap", current_map)
ArrayDestroy(g_mapName)
} }

View File

@ -574,3 +574,8 @@ load_settings(filename[])
return 1; return 1;
} }
public plugin_end()
{
ArrayDestroy(g_mapName)
}

View File

@ -1243,3 +1243,9 @@ load_settings(szFilename[])
return 1; return 1;
} }
public plugin_end()
{
ArrayDestroy(g_bantimes);
ArrayDestroy(g_slapsettings);
}