Fix a potential memory leak. Spotted by Samuel Serapion.

svn path=/trunk/; revision=55562
This commit is contained in:
Kamil Hornicek
2012-02-12 14:40:25 +00:00
parent 97524f1807
commit 47862c0956

View File

@@ -1349,6 +1349,7 @@ ftGdiGlyphCacheSet(
error = FT_Glyph_To_Bitmap(&GlyphCopy, RenderMode, 0, 1);
if (error)
{
FT_Done_Glyph(GlyphCopy);
DPRINT1("Failure rendering glyph.\n");
return NULL;
};