]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix leaked font fallbacks
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 12 Nov 2010 18:40:51 +0000 (18:40 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 12 Nov 2010 18:51:05 +0000 (19:51 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10589 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b7ca51ab466afc1058294fd91688da472d391293

ft2.c

diff --git a/ft2.c b/ft2.c
index a236348a6a142371baaaeaecc0c7c0bf38b8a08f..4ec7ac9d5b223fc65c25759374fd1093765eca39 100644 (file)
--- 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) {