You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/24 16:48:26 UTC

[38/50] incubator-weex git commit: * [ios] fix custom font memory leak

* [ios] fix custom font memory leak


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/df7cdb4e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/df7cdb4e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/df7cdb4e

Branch: refs/heads/test-ci
Commit: df7cdb4e9b0af5e7637f429b416264cfe698a5f7
Parents: 1b79066
Author: acton393 <zh...@gmail.com>
Authored: Wed Feb 22 21:41:25 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Feb 22 21:41:25 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/df7cdb4e/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 b5fa3b3..345eb9c 100644
--- a/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
+++ b/ios/sdk/WeexSDK/Sources/Utility/WXUtility.m
@@ -348,7 +348,7 @@ static BOOL WXNotStat;
             CGDataProviderRelease(fontDataProvider);
             CTFontRef smallFont = CTFontCreateWithGraphicsFont(graphicFont, size, NULL, NULL);
             CFRelease(graphicFont);
-            font = (__bridge UIFont*)smallFont;
+            font = (__bridge_transfer UIFont*)smallFont;
         }else {
             [[WXRuleManager sharedInstance] removeRule:@"fontFace" rule:@{@"fontFamily": fontFamily}];
         }