From d972216c57e2fe28fd36dad55c0772078640e971 Mon Sep 17 00:00:00 2001 From: Maximilian Wagenbach Date: Mon, 29 Jan 2018 19:35:05 +0100 Subject: [PATCH] Fix memory leak in sf::Text. --- src/SFML/Graphics/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Graphics/Font.cpp b/src/SFML/Graphics/Font.cpp index f148956e..d59746bb 100644 --- a/src/SFML/Graphics/Font.cpp +++ b/src/SFML/Graphics/Font.cpp @@ -558,7 +558,7 @@ Glyph Font::loadGlyph(Uint32 codePoint, unsigned int characterSize, bool bold, f FT_Stroker stroker = static_cast(m_stroker); FT_Stroker_Set(stroker, static_cast(outlineThickness * static_cast(1 << 6)), FT_STROKER_LINECAP_ROUND, FT_STROKER_LINEJOIN_ROUND, 0); - FT_Glyph_Stroke(&glyphDesc, stroker, false); + FT_Glyph_Stroke(&glyphDesc, stroker, true); } }