Hi!
In GUI style I put one font for  and . This give 
access violation error. The problem is in FGFontCache destructor.

Class FGFontCache contains two Maps : TexFontMap _texFonts and PuFontMap 
_puFonts. _texFonts contains fonts being read from the data/Fonts. 
PuFontMap contains fnt structure which is referencing to texfont from 
_texFonts. A number of fnt structures from _puFonts can refer to a 
single texFont.
In destructor fnt::~fnt() member fnt::texfont is deleted. But 
fnt::texfont is a copy of fntTexFont* from _texFonts. So when second fnt 
structure is deleting it try to delete the fntTexFont which was deleted 
at previous step. This deleting of deleted structure leads to Access 
Violation.

Second possible problem is in FGFontCache destructor. _puFonts map is 
deleted here but not _texFonts map. Can this lead to memory leak?

With respect,
Alex


_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to