From 124dfab5ae73221199b4a7eea570bd7206bdd722 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 21 Jun 2006 19:53:47 +0000 Subject: [PATCH] umm ... fix a tiny leak :-) --- src/GUI/new_gui.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index 4f4b65b98..53569c5b4 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -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;