You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/02/28 02:30:02 UTC
[22/50] incubator-weex git commit: * [ios] fix memory leak about
iconfont
* [ios] fix memory leak about iconfont
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/192c5c7b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/192c5c7b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/192c5c7b
Branch: refs/heads/0.11-dev
Commit: 192c5c7bf7a243374448cf36efe802339597f8fc
Parents: cca694e
Author: acton393 <zh...@gmail.com>
Authored: Wed Feb 22 17:14:18 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Feb 22 17:14:18 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Utility/WXUtility.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/192c5c7b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
index b086561..6dad053 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
@@ -354,7 +354,7 @@ static BOOL WXNotStat;
if (graphicFont) {
CFRelease(graphicFont);
}
- font = (__bridge UIFont*)smallFont;
+ font = (__bridge_transfer UIFont*)smallFont;
}else {
[[WXRuleManager sharedInstance] removeRule:@"fontFace" rule:@{@"fontFamily": fontFamily}];
}