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.set(globals->get_fg_root());
|
||||||
_path.append("Fonts");
|
_path.append("Fonts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int i=0; guifonts[i].name; i++)
|
||||||
|
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
|
||||||
|
|
||||||
_initialized = true;
|
_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; guifonts[i].name; i++)
|
|
||||||
_fonts[guifonts[i].name] = new fnt(guifonts[i].font);
|
|
||||||
|
|
||||||
_itt_t it;
|
_itt_t it;
|
||||||
if ((it = _fonts.find(name)) != _fonts.end())
|
if ((it = _fonts.find(name)) != _fonts.end())
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|
Loading…
Reference in a new issue