From 1f13b95e5bea92843f2fb27ee5dda9aa7e29b7b5 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sat, 29 Dec 2018 19:45:37 +0100 Subject: [PATCH] [FONT][WIN32SS] Fix a memory leak --- win32ss/gdi/ntgdi/freetype.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 58a81dc2b63..e24e79cc222 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -5876,11 +5876,7 @@ GreExtTextOutW( previous = glyph_index; - if (EmuBold || EmuItalic) - { - FT_Done_Glyph((FT_Glyph)realglyph); - realglyph = NULL; - } + FT_Done_Glyph(realglyph); } TextWidth = TextLeft - RealXStart;