Author: khornicek Date: Sun Feb 12 14:40:25 2012 New Revision: 55562
URL: http://svn.reactos.org/svn/reactos?rev=55562&view=rev Log: [WIN32K] Fix a potential memory leak. Spotted by Samuel Serapion.
Modified: trunk/reactos/subsystems/win32/win32k/objects/freetype.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/freetype.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/freetype.c [iso-8859-1] Sun Feb 12 14:40:25 2012 @@ -1349,6 +1349,7 @@ error = FT_Glyph_To_Bitmap(&GlyphCopy, RenderMode, 0, 1); if (error) { + FT_Done_Glyph(GlyphCopy); DPRINT1("Failure rendering glyph.\n"); return NULL; };