1
0
Fork 0

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:
Richard Harrison 2019-01-22 08:48:51 +01:00
parent 305d555be4
commit 7ab07eb1c0

View file

@ -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,