* [ios] fix _isTransitionBackgroundColorStyles crash
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/2252798d Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/2252798d Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/2252798d Branch: refs/heads/0.16-dev Commit: 2252798d4eb330c89d79c1b587a475b6ad6d96eb Parents: 625c80c Author: doumafang <[email protected]> Authored: Thu Sep 21 14:26:33 2017 +0800 Committer: doumafang <[email protected]> Committed: Thu Sep 21 14:26:33 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/2252798d/ios/sdk/WeexSDK/Sources/Model/WXComponent.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m index 7dd7750..0992b49 100644 --- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m +++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m @@ -168,9 +168,8 @@ { NSDictionary *styles; pthread_mutex_lock(&_propertyMutex); - styles = _styles; + styles = [_styles copy]; pthread_mutex_unlock(&_propertyMutex); - return styles; }
