Fix memory leak in sf::Text.

This commit is contained in:
Maximilian Wagenbach 2018-01-29 19:35:05 +01:00 committed by Lukas Dürrenberger
parent 511c16329e
commit d972216c57

View File

@ -558,7 +558,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold, f
FT_Stroker stroker = static_cast<FT_Stroker>(m_stroker);
FT_Stroker_Set(stroker, static_cast<FT_Fixed>(outlineThickness * static_cast<float>(1 << 6)), FT_STROKER_LINECAP_ROUND, FT_STROKER_LINEJOIN_ROUND, 0);
FT_Glyph_Stroke(&glyphDesc, stroker, false);
FT_Glyph_Stroke(&glyphDesc, stroker, true);
}
}