Fixed a leak with console stack in the interpreter.
@@ -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)
+ ConsoleStackFrameSaver saver;
+ saver.save();
com->callMethodArgList(argc, argv, false);
- gCallStack.popFrame();