File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ _swift_shims_CFIndex _swift_stdlib_CFStringGetLength(
69
69
_swift_shims_CFStringRef _Nonnull theString);
70
70
71
71
SWIFT_RUNTIME_STDLIB_INTERFACE
72
+ __attribute__ ((ns_returns_retained))
72
73
_swift_shims_CFStringRef _Nonnull _swift_stdlib_CFStringCreateWithSubstring(
73
74
_swift_shims_CFAllocatorRef _Nullable alloc,
74
75
_swift_shims_CFStringRef _Nonnull str, _swift_shims_CFRange range);
@@ -78,6 +79,7 @@ _swift_shims_UniChar _swift_stdlib_CFStringGetCharacterAtIndex(
78
79
_swift_shims_CFStringRef _Nonnull theString, _swift_shims_CFIndex idx);
79
80
80
81
SWIFT_RUNTIME_STDLIB_INTERFACE
82
+ __attribute__ ((ns_returns_retained))
81
83
_swift_shims_CFStringRef _Nonnull _swift_stdlib_CFStringCreateCopy(
82
84
_swift_shims_CFAllocatorRef _Nullable alloc,
83
85
_swift_shims_CFStringRef _Nonnull theString);
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ func _stdlib_binary_CFStringCreateCopy(
25
25
_ source: _CocoaString
26
26
) -> _CocoaString {
27
27
let result = _swift_stdlib_CFStringCreateCopy ( nil , source) as AnyObject
28
- Builtin . release ( result)
29
28
return result
30
29
}
31
30
You can’t perform that action at this time.
0 commit comments