Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #2887 from zhongwuzw/fix_js_string_release
Browse files Browse the repository at this point in the history
[iOS] Release property name after set property
  • Loading branch information
wqyfavor committed Oct 4, 2019
2 parents 6be3e96 + a32c578 commit c9abe38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ - (void)createInstance:(NSString *)instanceIdString
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")) {
Expand Down

0 comments on commit c9abe38

Please sign in to comment.