From 0f6c75637ff7abe4f699587ff6eee4f4bacdbd2a Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sun, 22 Jan 2012 13:47:55 +0100 Subject: [PATCH] font: fix memleak in freetype backend We didn't unref the symbol table correctly. Fix it. Signed-off-by: David Herrmann --- src/font_freetype.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/font_freetype.c b/src/font_freetype.c index afbee22..f619872 100644 --- a/src/font_freetype.c +++ b/src/font_freetype.c @@ -1,5 +1,5 @@ /* - * kmscon - Font Handling + * kmscon - Font Handling - FreeType2 Backend * * Copyright (c) 2011 David Herrmann * Copyright (c) 2011 University of Tuebingen @@ -25,8 +25,10 @@ */ /* - * Font Handling - * TODO + * Font Handling - FreeType2 + * This provides a font backend based on FreeType2 library. This is inferior to + * the pango backend as it does not handle combined characters. However, it + * pulls in a lot less dependencies so may be prefered on some systems. */ #include @@ -116,6 +118,7 @@ void kmscon_font_factory_unref(struct kmscon_font_factory *ff) if (err) log_warning("font: cannot deinitialize FreeType library\n"); + kmscon_symbol_table_unref(ff->st); free(ff); }