diff --git a/scripting/vscript/execute.sp b/scripting/vscript/execute.sp index 2f98019..71a256d 100644 --- a/scripting/vscript/execute.sp +++ b/scripting/vscript/execute.sp @@ -230,7 +230,9 @@ ScriptStatus_t Execute_Execute(VScriptExecute aExecute) execute.nReturn.nType = pReturn.nType; Execute_SetInfo(aExecute, execute); - delete hArgs, pReturn; + delete hArgs; + delete pReturn; + for (int i = 0; i < iNumParams; i++) delete hValue[i]; diff --git a/scripting/vscript/hscript.sp b/scripting/vscript/hscript.sp index bf43175..65af4b3 100644 --- a/scripting/vscript/hscript.sp +++ b/scripting/vscript/hscript.sp @@ -58,7 +58,8 @@ int HScript_GetKey(HSCRIPT pHScript, int iIterator, char[] sKey, int iLength, fi nField = pValue.nType; } - delete pKey, pValue; + delete pKey; + delete pValue; return iIterator; } @@ -125,7 +126,8 @@ ScriptVariant_t HScript_NativeGetValueEx(bool bError) return pValue; } - delete pKey, pValue; + delete pKey; + delete pValue; if (bError) ThrowNativeError(SP_ERROR_NATIVE, "Key name '%s' don't exist", sKey);