1
0
Fork 0

ok, so the old ~FGFontCache() was useless. But at least it didn't call

the buggy ~fnt(), causing an abort() ...   ;-)

(Only loaded texture fonts (*.txf) have a new'ed puFont. The built-in
pixmap fonts don't, and may, thus, not be deleted.)
This commit is contained in:
mfranz 2006-06-22 08:35:50 +00:00
parent 94badeabcd
commit d702ed379d

View file

@ -295,7 +295,7 @@ class FGFontCache {
private:
struct fnt {
fnt(puFont *pu = 0) : pufont(pu), texfont(0) {}
~fnt() { delete pufont; delete texfont; }
~fnt() { if (texfont) { delete pufont; delete texfont; } }
puFont *pufont;
fntTexFont *texfont;
};