https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1f13b95e5bea92843f2fb27ee5dda9aa7e29b7b5

commit 1f13b95e5bea92843f2fb27ee5dda9aa7e29b7b5
Author:     Mark Jansen <[email protected]>
AuthorDate: Sat Dec 29 19:45:37 2018 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Sat Dec 29 19:47:00 2018 +0100

    [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 58a81dc2b6..e24e79cc22 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;

Reply via email to