1
0
Fork 0

oh, and by the way: this destructor didn't do anything useful :-)

This commit is contained in:
mfranz 2006-06-21 21:17:21 +00:00
parent 124dfab5ae
commit 229d499f7b

View file

@ -414,7 +414,9 @@ FGFontCache::FGFontCache() :
FGFontCache::~FGFontCache()
{
_fonts.clear();
map<const string, fnt *>::iterator it, end = _fonts.end();
for (it = _fonts.begin(); it != end; ++it)
delete it->second;
}
struct FGFontCache::fnt *
@ -429,7 +431,7 @@ FGFontCache::getfnt(const char *name, float size, float slant)
_path.append("Fonts");
}
for (int i=0; guifonts[i].name; i++)
for (int i = 0; guifonts[i].name; i++)
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
_initialized = true;