* [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/master
Commit: df7cdb4e9b0af5e7637f429b416264cfe698a5f7
Parents: 1b79066
Author: acton393 <[email protected]>
Authored: Wed Feb 22 21:41:25 2017 +0800
Committer: acton393 <[email protected]>
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}];
         }

Reply via email to