From: Gunnar Beutner Date: Thu, 30 Jul 2015 17:45:48 +0000 (+0200) Subject: Fix incorrect 'this' scope in i2tcl X-Git-Tag: v2.4.0~463 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21e34c7f0580904e9ef357d6d8a89f8d9608f9cc;p=icinga2 Fix incorrect 'this' scope in i2tcl fixes #9794 --- 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)