Skip to content

Commit a5c8455

Browse files
ogresphausler
authored andcommitted
SR-5989 Added missing call to _CFDeinit for NSLocale (#1290)
1 parent a33dfb5 commit a5c8455

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Foundation/NSLocale.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ open class NSLocale: NSObject, NSCopying, NSSecureCoding {
5050
self.init(localeIdentifier: String._unconditionallyBridgeFromObjectiveC(identifier))
5151
}
5252

53+
deinit {
54+
_CFDeinit(self)
55+
}
56+
5357
open override func copy() -> Any {
5458
return copy(with: nil)
5559
}

0 commit comments

Comments
 (0)