Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CTLineRef leaks (facebookarchive#1386)
Found by Clang Static Analyzer: ~/Texture/Source/ASTextNode2.mm:663:39: warning: Potential leak of an object stored into 'truncationTokenLine' CTLineRef truncationTokenLine = CTLineCreateWithAttributedString((CFAttributedStringRef)_truncationAttributedText); ^ ~/Texture/Source/ASTextNode2.mm:666:49: warning: Potential leak of an object stored into 'additionalTruncationTokenLine' CTLineRef additionalTruncationTokenLine = CTLineCreateWithAttributedString((CFAttributedStringRef)_additionalTruncationMessage); ^ 2 warnings generated.
- Loading branch information