mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
macOS: Fix small leak in glyph rendering code
This commit is contained in:
parent
0195e7f841
commit
8176f661ea
1 changed files with 2 additions and 0 deletions
|
|
@ -376,6 +376,8 @@ render_glyphs(CTFontRef font, unsigned int width, unsigned int height, unsigned
|
|||
CGContextSetTextMatrix(render_ctx, CGAffineTransformIdentity);
|
||||
CGContextSetTextPosition(render_ctx, 0, height - baseline);
|
||||
CTFontDrawGlyphs(font, glyphs, positions, num_glyphs, render_ctx);
|
||||
CGContextRelease(render_ctx);
|
||||
GColorSpaceRelease(gray_color_space);
|
||||
}
|
||||
|
||||
static inline bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue