Fix some memleaks :^)

This commit is contained in:
BotoX
2016-12-05 21:14:59 +01:00
parent 4c6a9e7f57
commit 3818fea767
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -122,7 +122,10 @@ public Action Command_ForceInput(int client, int args)
int entity = TR_GetEntityIndex(hTrace);
if(entity <= 1 || !IsValidEntity(entity))
{
CloseHandle(hTrace);
return Plugin_Handled;
}
if(sArguments[2][0])
SetVariantString(sArguments[2]);
@@ -130,6 +133,7 @@ public Action Command_ForceInput(int client, int args)
AcceptEntityInput(entity, sArguments[1], client, client);
ReplyToCommand(client, "[SM] Input successful.");
}
CloseHandle(hTrace);
}
else
{