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

Commit a32c578

Browse files
committed
[iOS] Release property name after set property
1 parent 6daad9e commit a32c578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ - (void)createInstance:(NSString *)instanceIdString
567567
JSObjectSetPrototype(instanceContextRef, JSValueToObject(instanceContextRef, [instanceContextEnvironment valueForProperty:key].JSValueRef, NULL), JSObjectGetPrototype(instanceContextRef, instanceGlobalObject));
568568
}
569569
JSObjectSetProperty(instanceContextRef, instanceGlobalObject, propertyName, [instanceContextEnvironment valueForProperty:key].JSValueRef, 0, NULL);
570+
JSStringRelease(propertyName);
570571
}
571572

572573
if (WX_SYS_VERSION_LESS_THAN(@"10.2")) {

0 commit comments

Comments
 (0)