Fixed memory leak in detach

This commit is contained in:
David Anderson
2004-08-31 02:05:27 +00:00
parent 91aacb1036
commit b34179e997
3 changed files with 21 additions and 182 deletions

View File

@ -308,7 +308,6 @@ static cell AMX_NATIVE_CALL register_message(AMX *amx, cell *params)
int len;
if (params[1]>0 && params[1] < 256) {
int id = MF_RegisterSPForwardByName(amx, MF_GetAmxString(amx, params[2], 0, &len), FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
// MF_Log("Registering message %d with result %d", params[1], id);
if (id != -1)
{
msgHooks[params[1]].push_back(id);