mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge pull request #320 from Azaezel/alpha40_Execute_internalExecute_Bug
memleak fix
This commit is contained in:
commit
7097edc2fe
1 changed files with 1 additions and 0 deletions
|
|
@ -1496,6 +1496,7 @@ ConsoleValueRef _internalExecute(S32 argc, ConsoleValueRef argv[])
|
|||
}
|
||||
bool result;
|
||||
const char* methodRes = CInterface::CallFunction(NULL, argv[0], argv_str, argc - 1, &result);
|
||||
free(argv_str);
|
||||
if (result)
|
||||
{
|
||||
return ConsoleValueRef::fromValue(CSTK.pushString(methodRes));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue