umm ... fix a tiny leak :-)
This commit is contained in:
parent
2a1077dae3
commit
124dfab5ae
1 changed files with 4 additions and 3 deletions
|
@ -428,12 +428,13 @@ FGFontCache::getfnt(const char *name, float size, float slant)
|
|||
_path.set(globals->get_fg_root());
|
||||
_path.append("Fonts");
|
||||
}
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
for (int i=0; guifonts[i].name; i++)
|
||||
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
|
||||
|
||||
_initialized = true;
|
||||
}
|
||||
|
||||
_itt_t it;
|
||||
if ((it = _fonts.find(name)) != _fonts.end())
|
||||
return it->second;
|
||||
|
|
Loading…
Reference in a new issue