From 608e852ac620e327ba8f6bd1089102196aea74f4 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 4 Jul 2013 15:34:05 -0500 Subject: [PATCH] Free Team Arena fonts/fontImage_X.dat buffer Caused temp memory to be present all the time, so Hunk_Alloc ignored memory low/high preference. May have caused other issues as well. --- code/renderercommon/tr_font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/code/renderercommon/tr_font.c b/code/renderercommon/tr_font.c index e2e94f13..dda00e24 100644 --- a/code/renderercommon/tr_font.c +++ b/code/renderercommon/tr_font.c @@ -401,6 +401,7 @@ void RE_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) { font->glyphs[i].glyph = RE_RegisterShaderNoMip(font->glyphs[i].shaderName); } Com_Memcpy(®isteredFont[registeredFontCount++], font, sizeof(fontInfo_t)); + ri.FS_FreeFile(faceData); return; }