From b7ca51ab466afc1058294fd91688da472d391293 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 12 Nov 2010 18:40:51 +0000 Subject: [PATCH] fix leaked font fallbacks git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10589 d7cf8633-e32d-0410-b094-e92efae38249 --- ft2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ft2.c b/ft2.c index 47958d74..640989ba 100644 --- a/ft2.c +++ b/ft2.c @@ -956,6 +956,11 @@ static void UnloadMapRec(ft2_font_map_t *map) void Font_UnloadFont(ft2_font_t *font) { int i; + + // unload fallbacks + if(font->next) + Font_UnloadFont(font->next); + if (font->attachments && font->attachmentcount) { for (i = 0; i < font->attachmentcount; ++i) { -- 2.39.2