From: divverent Date: Fri, 12 Nov 2010 18:40:51 +0000 (+0000) Subject: fix leaked font fallbacks X-Git-Tag: xonotic-v0.1.0preview~56^2~28 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b7ca51ab466afc1058294fd91688da472d391293;p=xonotic%2Fdarkplaces.git fix leaked font fallbacks git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10589 d7cf8633-e32d-0410-b094-e92efae38249 --- 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) {