Ensure fonts list cleared in destructor.
This is part of work trying to track down a segfault that is caused after a replay session (F-15).
This commit is contained in:
parent
305d555be4
commit
7ab07eb1c0
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ FGFontCache::~FGFontCache()
|
|||
PuFontMap::iterator it, end = _puFonts.end();
|
||||
for (it = _puFonts.begin(); it != end; ++it)
|
||||
delete it->second;
|
||||
_puFonts.clear();
|
||||
}
|
||||
|
||||
inline bool FGFontCache::FntParamsLess::operator()(const FntParams& f1,
|
||||
|
|
Loading…
Add table
Reference in a new issue