mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-30 15:10:56 +00:00
fix mem leak
This commit is contained in:
parent
c5499065a3
commit
d3696e5c4f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user