This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new a32c578  [iOS] Release property name after set property
     new c9abe38  Merge pull request #2887 from zhongwuzw/fix_js_string_release
a32c578 is described below

commit a32c5782c4974edabdc1163bf5d59be564ca445e
Author: zhongwuzw <[email protected]>
AuthorDate: Mon Sep 9 15:22:58 2019 +0800

    [iOS] Release property name after set property
---
 ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m 
b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
index 89287e5..195b7c8 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
@@ -567,6 +567,7 @@ _Pragma("clang diagnostic pop") \
                         JSObjectSetPrototype(instanceContextRef, 
JSValueToObject(instanceContextRef, [instanceContextEnvironment 
valueForProperty:key].JSValueRef, NULL), 
JSObjectGetPrototype(instanceContextRef, instanceGlobalObject));
                     }
                     JSObjectSetProperty(instanceContextRef, 
instanceGlobalObject, propertyName, [instanceContextEnvironment 
valueForProperty:key].JSValueRef, 0, NULL);
+                    JSStringRelease(propertyName);
                 }
                 
                 if (WX_SYS_VERSION_LESS_THAN(@"10.2")) {

Reply via email to