1
0
Fork 0

umm ... fix a tiny leak :-)

This commit is contained in:
mfranz 2006-06-21 19:53:47 +00:00
parent 2a1077dae3
commit 124dfab5ae

View file

@ -428,12 +428,13 @@ FGFontCache::getfnt(const char *name, float size, float slant)
_path.set(globals->get_fg_root());
_path.append("Fonts");
}
for (int i=0; guifonts[i].name; i++)
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
_initialized = true;
}
for (int i=0; guifonts[i].name; i++)
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
_itt_t it;
if ((it = _fonts.find(name)) != _fonts.end())
return it->second;