oh, and by the way: this destructor didn't do anything useful :-)
This commit is contained in:
parent
124dfab5ae
commit
229d499f7b
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue