You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/04/17 01:57:53 UTC
[incubator-weex] branch master updated: [iOS] fix buildComponent
crash
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 7135fdf [iOS] fix buildComponent crash
new 1213337 Merge pull request #2326 from jianhan-he/master
7135fdf is described below
commit 7135fdfc627511076986c634b69cfbdead7c5ed4
Author: linghe.lh <li...@alibaba-inc.com>
AuthorDate: Wed Apr 17 09:48:32 2019 +0800
[iOS] fix buildComponent crash
---
ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm b/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
index aef0292..9f9c3de 100644
--- a/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
+++ b/ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
@@ -535,7 +535,7 @@ static NSThread *WXComponentThread;
}
Class clazz = NSClassFromString(config.clazz);
- WXComponent *component = [clazz alloc];
+ WXComponent *component = [[clazz alloc] init];
if (component) {
if (renderObject) {
[component _setRenderObject:renderObject];