From 9672c2e24563c680e424ddaa566a6dc1ec26bedd Mon Sep 17 00:00:00 2001 From: zhongwuzw Date: Wed, 23 Jan 2019 04:02:55 -0800 Subject: [PATCH] Add CF_RETURNS_NOT_RETAINED annotate for Objective-C method which returns Core Foundation object (#23122) Summary: Changelog: ---------- [iOS][Fixed] - Add CF_RETURNS_NOT_RETAINED annotate for Objective-C method which returns Core Foundation object Pull Request resolved: https://github.com/facebook/react-native/pull/23122 Differential Revision: D13781898 Pulled By: cpojer fbshipit-source-id: 5953fa24a3d06766affdcabdec96bd43c062bf1b --- Libraries/ART/RCTConvert+ART.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/ART/RCTConvert+ART.h b/Libraries/ART/RCTConvert+ART.h index ffc1deafe..5fe3b4edb 100644 --- a/Libraries/ART/RCTConvert+ART.h +++ b/Libraries/ART/RCTConvert+ART.h @@ -15,7 +15,7 @@ @interface RCTConvert (ART) -+ (CGPathRef)CGPath:(id)json; ++ (CGPathRef)CGPath:(id)json CF_RETURNS_NOT_RETAINED; + (CTTextAlignment)CTTextAlignment:(id)json; + (ARTTextFrame)ARTTextFrame:(id)json; + (ARTCGFloatArray)ARTCGFloatArray:(id)json; @@ -23,7 +23,7 @@ + (CGPoint)CGPoint:(id)json offset:(NSUInteger)offset; + (CGRect)CGRect:(id)json offset:(NSUInteger)offset; -+ (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset; -+ (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset; ++ (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED; ++ (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset CF_RETURNS_NOT_RETAINED; @end