瀏覽代碼

HPCC-8030 R/Java/JavaScript/Python language support in ECL

More changes in response to code review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 12 年之前
父節點
當前提交
49576a05f1
共有 2 個文件被更改,包括 1 次插入1 次删除
  1. 1 0
      plugins/javaembed/javaembed.cpp
  2. 0 1
      plugins/v8embed/v8embed.cpp

+ 1 - 0
plugins/javaembed/javaembed.cpp

@@ -357,6 +357,7 @@ static __thread ThreadTermFunc threadHookChain;
 static void releaseContext()
 {
     delete threadContext;
+    threadContext = NULL;
     if (threadHookChain)
         (*threadHookChain)();
 }

+ 0 - 1
plugins/v8embed/v8embed.cpp

@@ -191,7 +191,6 @@ class V8JavascriptEmbedContext : public CInterfaceOf<IEmbedContext>
 public:
     V8JavascriptEmbedContext()
     {
-        Link();  // Deliberately 'leak' in order to avoid freeing this global object
     }
     virtual IEmbedFunctionContext *createFunctionContext(bool isImport, const char *options)
     {