fix memory leaks

This commit is contained in:
DmitriyS 2015-07-11 00:39:34 +03:00
parent 846238fe99
commit e98ab37806
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);
}