From bcde9052c250bb8a684516930069379f1c1349ce Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Mon, 17 Apr 2023 22:39:30 +0200 Subject: fix memory leak of draw_char --- drw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drw.h') diff --git a/drw.h b/drw.h index af07d50..8417e15 100644 --- a/drw.h +++ b/drw.h @@ -24,6 +24,7 @@ typedef struct { int loaded; FT_Library library; FT_Face face; + FT_Stroker stroke; } Font; enum FontType { @@ -72,6 +73,5 @@ FontCache *create_font_cache(FontPath *fontpath, int size, unsigned fontsize); void font_cache_generate_box(FontCache *fontcache); void free_font_cache(FontCache *fontcache); unsigned draw_char(Canvas *canvas, FontCache *fontcache, uint_least32_t charcode, unsigned x, unsigned y, uint32_t color); -unsigned font_width(FontCache *fontcache, const char *text); #endif -- cgit v1.2.3-70-g09d2