fix mem leak

This commit is contained in:
Stephan Diederich 2013-06-20 14:18:28 +02:00
parent c5499065a3
commit d3696e5c4f

View File

@ -666,6 +666,7 @@ static inline NSAttributedString * NSAttributedStringBySettingColorFromContext(N
CTFontRef font = CTFontCreateWithName((__bridge CFStringRef)self.font.fontName, self.font.pointSize, NULL);
CGContextSetLineWidth(c, CTFontGetUnderlineThickness(font));
CFRelease(font);
CGFloat y = roundf(runBounds.origin.y + runBounds.size.height / 2.0f);
CGContextMoveToPoint(c, runBounds.origin.x, y);
CGContextAddLineToPoint(c, runBounds.origin.x + runBounds.size.width, y);