mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +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
|
|
@ -696,7 +696,6 @@ ConsoleValue CodeBlock::exec(U32 ip, const char* functionName, Namespace* thisNa
|
|||
{
|
||||
// argc is the local count for eval
|
||||
gEvalState.pushFrame(NULL, NULL, argc);
|
||||
gCallStack.pushFrame(0);
|
||||
popFrame = true;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -1628,9 +1628,9 @@ static ConsoleValue _internalExecute(SimObject *object, S32 argc, ConsoleValue a
|
|||
ICallMethod *com = dynamic_cast<ICallMethod *>(object);
|
||||
if(com)
|
||||
{
|
||||
gCallStack.pushFrame(0);
|
||||
ConsoleStackFrameSaver saver;
|
||||
saver.save();
|
||||
com->callMethodArgList(argc, argv, false);
|
||||
gCallStack.popFrame();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue