From 61665e6a69392f22d1222385265dd5e3e22d4efe Mon Sep 17 00:00:00 2001 From: Johnathan Norman Date: Fri, 12 Jan 2018 15:08:45 -0800 Subject: [PATCH] need to delete context or you'll have a memory leak --- ChakraCore Samples/Hello World/Python/helloWorld.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ChakraCore Samples/Hello World/Python/helloWorld.py b/ChakraCore Samples/Hello World/Python/helloWorld.py index 217b8bd..6f89f35 100644 --- a/ChakraCore Samples/Hello World/Python/helloWorld.py +++ b/ChakraCore Samples/Hello World/Python/helloWorld.py @@ -73,4 +73,5 @@ def usage(): print("Result from ChakraCore: ", resultSTR.value); # Dispose runtime +chakraCore.JsSetCurrentContext(0) chakraCore.JsDisposeRuntime(runtime);