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