Merge pull request #256 from DmitriyS/master
Plugins: Close Array/Trie handles on map end
This commit is contained in:
commit
b8cc1ac79d
|
@ -1332,3 +1332,9 @@ public cmdLast(id, level, cid)
|
|||
|
||||
return PLUGIN_HANDLED;
|
||||
}
|
||||
|
||||
public plugin_end()
|
||||
{
|
||||
TrieDestroy(g_tempBans);
|
||||
TrieDestroy(g_tXvarsFlags);
|
||||
}
|
||||
|
|
|
@ -117,4 +117,7 @@ public plugin_end()
|
|||
|
||||
num_to_str(g_Current, lastinfo, charsmax(lastinfo))
|
||||
set_localinfo("lastinfomsg", lastinfo)
|
||||
|
||||
ArrayDestroy(g_Messages)
|
||||
ArrayDestroy(g_Values)
|
||||
}
|
||||
|
|
|
@ -289,4 +289,6 @@ public plugin_end()
|
|||
|
||||
get_mapname(current_map, charsmax(current_map))
|
||||
set_localinfo("lastMap", current_map)
|
||||
|
||||
ArrayDestroy(g_mapName)
|
||||
}
|
||||
|
|
|
@ -574,3 +574,8 @@ load_settings(filename[])
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public plugin_end()
|
||||
{
|
||||
ArrayDestroy(g_mapName)
|
||||
}
|
||||
|
|
|
@ -1243,3 +1243,9 @@ load_settings(szFilename[])
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public plugin_end()
|
||||
{
|
||||
ArrayDestroy(g_bantimes);
|
||||
ArrayDestroy(g_slapsettings);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user