* [iOS] release jsContext object
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/07ef9654 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/07ef9654 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/07ef9654 Branch: refs/heads/master Commit: 07ef9654eb5665c845ee958d89b4b5f703938d2c Parents: b8167ee Author: acton393 <zhangxing610...@gmail.com> Authored: Thu Dec 14 19:12:34 2017 +0800 Committer: acton393 <zhangxing610...@gmail.com> Committed: Wed Dec 20 17:53:12 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/07ef9654/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index 1bdf0bc..01d6b36 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -544,10 +544,10 @@ _Pragma("clang diagnostic pop") \ if(self.sendQueue[instance]){ [self.sendQueue removeObjectForKey:instance]; } + WXSDKInstance * sdkInstance = [WXSDKManager instanceForID:instance]; + sdkInstance.instanceJavaScriptContext = nil; [self callJSMethod:@"destroyInstance" args:@[instance]]; - WXSDKInstance *sdkIntance = [WXSDKManager instanceForID:instance]; - sdkIntance.instanceJavaScriptContext = NULL; } - (void)forceGarbageCollection