Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed memory leaks

  • Loading branch information...
commit aa8fd98ce80052252994885896e15a2466037196 1 parent a322034
Adrian Kosmaczewski authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Classes/Views/AKOMultiColumnTextView.m
View
5 Classes/Views/AKOMultiColumnTextView.m
@@ -231,9 +231,11 @@ - (void)updateAttributedString
if (self.font != nil)
{
+ CTFontRef font = self.font.CTFont;
[self.attributedString addAttribute:(NSString *)kCTFontAttributeName
- value:(id)self.font.CTFont
+ value:(id)font
range:range];
+ CFRelease(font);
}
if (self.color != nil)
@@ -295,6 +297,7 @@ - (void)updateFrames
CFRange frameRange = CTFrameGetVisibleStringRange(frame);
currentIndex += frameRange.length;
+ CFRelease(frame);
}
_finalIndex = currentIndex;
Please sign in to comment.
Something went wrong with that request. Please try again.