From 21e34c7f0580904e9ef357d6d8a89f8d9608f9cc Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 30 Jul 2015 19:45:48 +0200 Subject: [PATCH] Fix incorrect 'this' scope in i2tcl fixes #9794 --- contrib/i2eval/i2tcl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/i2eval/i2tcl.cpp b/contrib/i2eval/i2tcl.cpp index 7ffe68ebb..056dd3f71 100644 --- a/contrib/i2eval/i2tcl.cpp +++ b/contrib/i2eval/i2tcl.cpp @@ -96,7 +96,9 @@ void *i2_new_frame(Tcl_Interp *interp) Application::InitializeBase(); } - return new ScriptFrame(); + ScriptFrame *frame = new ScriptFrame(); + frame->Self = ScriptGlobal::GetGlobals(); + return frame; } void i2_free_frame(void *frame, Tcl_Interp *interp) -- 2.50.1