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

Commit

Permalink
[iOS] destroy vnode first ,then destroy jsobject
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Apr 23, 2019
1 parent a88c087 commit 48e6437
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,17 @@ - (void)destroyInstance:(NSString *)instance
if (_dataRenderHandler) {
WXPerformBlockOnComponentThread(^{
[_dataRenderHandler destroyDataRenderInstance:instance];
WXPerformBlockOnBridgeThread(^{
[self callJSMethod:@"destroyInstance" args:@[instance]];
});
});
}
else {
WXLogError(@"No data render handler found!");
}
} else {
[self callJSMethod:@"destroyInstance" args:@[instance]];
}
[self callJSMethod:@"destroyInstance" args:@[instance]];
}

- (void)forceGarbageCollection
Expand Down

0 comments on commit 48e6437

Please sign in to comment.