mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Merge pull request #678 from JeffProgrammer/console-stack-fixes
Fixed a leak with console stack in the interpreter.
This commit is contained in:
commit
01ae95ee4b
2 changed files with 2 additions and 3 deletions
|
|
@ -696,7 +696,6 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
||||||
{
|
{
|
||||||
// argc is the local count for eval
|
// argc is the local count for eval
|
||||||
gEvalState.pushFrame(NULL, NULL, argc);
|
gEvalState.pushFrame(NULL, NULL, argc);
|
||||||
gCallStack.pushFrame(0);
|
|
||||||
popFrame = true;
|
popFrame = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1628,9 +1628,9 @@ static ConsoleValue _internalExecute(SimObject *object, S32 argc, ConsoleValue a
|
||||||
ICallMethod *com = dynamic_cast<ICallMethod *>(object);
|
ICallMethod *com = dynamic_cast<ICallMethod *>(object);
|
||||||
if(com)
|
if(com)
|
||||||
{
|
{
|
||||||
gCallStack.pushFrame(0);
|
ConsoleStackFrameSaver saver;
|
||||||
|
saver.save();
|
||||||
com->callMethodArgList(argc, argv, false);
|
com->callMethodArgList(argc, argv, false);
|
||||||
gCallStack.popFrame();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue