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:
parent
94badeabcd
commit
d702ed379d
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ class FGFontCache {
|
||||||
private:
|
private:
|
||||||
struct fnt {
|
struct fnt {
|
||||||
fnt(puFont *pu = 0) : pufont(pu), texfont(0) {}
|
fnt(puFont *pu = 0) : pufont(pu), texfont(0) {}
|
||||||
~fnt() { delete pufont; delete texfont; }
|
~fnt() { if (texfont) { delete pufont; delete texfont; } }
|
||||||
puFont *pufont;
|
puFont *pufont;
|
||||||
fntTexFont *texfont;
|
fntTexFont *texfont;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue