From Garrat Potts, fixed face memory leak in FreTypeFont destructor.

This commit is contained in:
Robert Osfield
2005-04-21 21:05:48 +00:00
parent 8d1c407a9a
commit 7182713dcf

View File

@@ -24,6 +24,11 @@ FreeTypeFont::FreeTypeFont(const std::string& filename, FT_Face face):
FreeTypeFont::~FreeTypeFont()
{
if(_face)
{
FT_Done_Face(_face);
_face = 0;
}
}
void FreeTypeFont::setFontResolution(unsigned int width, unsigned int height)