mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fixed a memory leak I made :-)
This commit is contained in:
parent
af1242415c
commit
2cf4801f6b
@ -533,6 +533,8 @@ static cell AMX_NATIVE_CALL strbreak(AMX *amx, cell *params) /* 5 param */
|
|||||||
right[right_pos] = '\0';
|
right[right_pos] = '\0';
|
||||||
set_amxstring(amx, params[2], left, params[3]);
|
set_amxstring(amx, params[2], left, params[3]);
|
||||||
set_amxstring(amx, params[4], right, params[5]);
|
set_amxstring(amx, params[4], right, params[5]);
|
||||||
|
delete [] left;
|
||||||
|
delete [] right;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user