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

Commit

Permalink
[iOS] Release property name after set property
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Sep 9, 2019
1 parent 6daad9e commit a32c578
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 a32c578

Please sign in to comment.